Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HOW to connect with keypair? #69

Open
drawbridgedon opened this issue Sep 3, 2020 · 1 comment
Open

HOW to connect with keypair? #69

drawbridgedon opened this issue Sep 3, 2020 · 1 comment

Comments

@drawbridgedon
Copy link

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

@MCluck90
Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants