teambition / gulp-ssh

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

Utilize ~/.ssh/config #7

Closed kevinswarner closed 8 years ago

kevinswarner commented 9 years ago

Is it possible to utilize the .ssh config? I don't think it is, but wanted to be sure I was not missing something. Thanks!

zensh commented 9 years ago

It can't utilize the .ssh config...

var gulpSSH = new GulpSSH({
    sshConfig: {
      host: 'angularjs.cn',
      port: 22,
      username: 'root',
      privateKey: require('fs').readFileSync('/Users/zensh/.ssh/id_rsa')
    }
  });