ColdGrub1384 / Pisth

SSH and SFTP client for iOS
https://develobile.com/pisth
Apache License 2.0
413 stars 67 forks source link

Connecting via ssh key fails with password blank #15

Closed ghost closed 5 years ago

ghost commented 5 years ago

I cannot seem to pass the authentication via keys when I leave the password blank. The keys are correct, which was tested on another client.

ColdGrub1384 commented 5 years ago

Do the private key have a passphrase? If yes, you should put the SSH passphrase in password field.

ghost commented 5 years ago

@ColdGrub1384 No, no passphrase.

ColdGrub1384 commented 5 years ago

How did you generated the SSH keys? So I can try to reproduce the issue.

ColdGrub1384 commented 5 years ago

As the keys work on other SSH clients, that may be an issue of libssh2.

ghost commented 5 years ago

@ColdGrub1384 I generated the keys using ssh-keygen command on my Mac.

ColdGrub1384 commented 5 years ago

Ok. I think I finally found the problem. I have to update libssh2 to a version that supports new OpenSSH keys format. https://github.com/libssh2/libssh2/issues/68

ghost commented 5 years ago

Thanks for your effort!

ColdGrub1384 commented 5 years ago

I just fixed it! The problem was that macOS was generating SSH keys in a "new" format unsupported by the library I was using, but I just had to update it. I will release an update today.

ColdGrub1384 commented 5 years ago

The issue is now fixed on the App Store version. Thank you for reporting.