simple-ssh icon indicating copy to clipboard operation
simple-ssh copied to clipboard

HOW to connect with keypair?

Open drawbridgedon opened this issue 5 years ago • 1 comments

how do i connect using a .pem vs a normal password

drawbridgedon avatar Sep 03 '20 21:09 drawbridgedon

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!

mikecluck avatar Sep 10 '20 14:09 mikecluck