teambition / gulp-ssh

SSH and SFTP tasks for gulp
184 stars 38 forks source link

Does not work with .ssh/config #40

Closed aluminium1989 closed 8 years ago

aluminium1989 commented 8 years ago

My config example:

Host home HostName home Port xxxx User xxxx

Authentication by public key.

aluminium1989 commented 8 years ago

Will setting IdentityFile resolve this problem? No, it does not help

zensh commented 8 years ago

Here is config example:

var config = {
  host: '192.168.0.21',
  port: 22,
  username: 'iojs',
  privateKey: fs.readFileSync('/Users/zensh/.ssh/id_rsa')
}

var gulpSSH = new GulpSSH({
  ignoreErrors: false,
  sshConfig: config
})

Why didn't you read README?

zensh commented 8 years ago

This lib didn't parse config file, you should parse it by yourself.