jakeheis / Shout

SSH made easy in Swift
MIT License
360 stars 105 forks source link

SSH Public Key not found #50

Open anwittmann opened 4 years ago

anwittmann commented 4 years ago

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:

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

Br, Andy

jakeheis commented 3 years ago

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 commented 1 year ago

@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?