simple-ssh
simple-ssh copied to clipboard
HOW to connect with keypair?
how do i connect using a .pem vs a normal password
Hi! Sorry for the delay. I don't really work on this project any more.
You should be able to use the key property. Here's another issue where someone was trying to do that same thing #66
You'll see in the documentation that the constructor takes a key property.
const ssh = new SSH({
host: 'your-host',
key: 'key-value' // To read a key from a file use the `fs` module. See issue #66
})
Hope this helps!