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

SSH Public Key not found #50

Open
anwittmann opened this issue Oct 20, 2020 · 2 comments
Open

SSH Public Key not found #50

anwittmann opened this issue Oct 20, 2020 · 2 comments

Comments

@anwittmann
Copy link

Hello,

if I'm using the latest library ("0.5.5"), I got the following Error if I want to establish a SSH Connection.

Error: Unable to open public Key File (code 16 = file)

while using the following method:

  • try ssh.authenticate(username: <"">, privateKey: <"">, passphrase: <"">)

If I'm creating a dummy key.pub file I got the error:
Public key to short

Br,
Andy

@jakeheis
Copy link
Owner

I would start by confirming you have a private key and public key in the same directory with the same name. They must be created using ssh-keygen (or equivalent tool) and must be named identically. So for example you could have a private key at .ssh/id_rsa and a public key at .ssh/id_rsa.pub

@demskigroup
Copy link

@jakeheis We are getting the same error, we've tried putting the key into a string and putting it in there but it keeps saying not found. How do we make this work?

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

3 participants