Skip to content

Commit

Permalink
Skip host key checking
Browse files Browse the repository at this point in the history
  • Loading branch information
znck committed Feb 14, 2020
1 parent 9e698c1 commit 469e4f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/transport/shell.js
Expand Up @@ -104,7 +104,7 @@ Shell.prototype.transfer = function(files, remoteDir, options) {
var self = this;

var task = function(remote) {
var sshFlags = (remote.privateKey ? ' -i ' + remote.privateKey : '');
var sshFlags = (remote.privateKey ? ' -i ' + remote.privateKey : '') + ' -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null';
var remoteUrl = util.format('%s%s:%s',
(remote.username ? remote.username + '@' : ''),
remote.host, remoteDir);
Expand Down

0 comments on commit 469e4f0

Please sign in to comment.