sanketbajoria / ssh2-promise

ssh with promise/async await and typescript support
https://www.npmjs.com/package/ssh2-promise
MIT License
148 stars 25 forks source link

String identity #36

Closed LeonAlvarez closed 5 years ago

LeonAlvarez commented 5 years ago

Is there any way to use a string as identity instead of using path of the private key.

sanketbajoria commented 5 years ago

@LeonAlvarez pass configuration as below under privateKey var sshconfig2 = { host: '192.168.1.3', username: 'ubuntu', privateKey: '<privateKey>' }

LeonAlvarez commented 5 years ago

ty