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

ed25519 ssh keys do not work #305

Closed
jmpolom opened this issue Sep 16, 2019 · 5 comments
Closed

ed25519 ssh keys do not work #305

jmpolom opened this issue Sep 16, 2019 · 5 comments

Comments

@jmpolom
Copy link

jmpolom commented Sep 16, 2019

It appears that ed25519 ssh keys do not work?

I tried loading an ed25519 ssh key and I get an error. "Failed to fetch from remote. Underlying Error: Failed to authenticate SSH session: Unable to extract public key from private key."

Pass for iOS 0.7.0

This was previously reported in #205 but I wanted to create a separate issue since it seemed like this was supposed to have been fixed with the switch to GopenPGP.

@mssun
Copy link
Owner

mssun commented Sep 19, 2019

Hi @jmpolom. Thanks for your report.

The SSH channel is established within Git remote operations. Therefore, the SSH key exchange algorithm is not in the PGP library, but in the objective-git library. The issue you were referring is about the PGP library.

So, this is another troublesome issue for a long time caused by our upstream library (objective-git). I think the support of ED25519 ssh key can be solve by updating the libgit2 library in the objective-git library. There are several related issues:

Similar with our previous PGP library, I'm thinking some alternatives (which should be more reliably and full functional).

@mssun mssun added the git label Sep 19, 2019
@mssun
Copy link
Owner

mssun commented Nov 20, 2019

Finally, I managed to update openssl (1.1.1d), libssh2 (1.9.0), libgit2(0.28.3) in my forked objective-git: mssun/objective-git@4c7b5d1. Pass has been updated in this commit 81eb4b8

Now, these dependencies are in the latest release. This means that ED25519 works now!

I don't have a full list of supported key algorithms, but supported algorithms can be checked in this file:
https://github.com/libssh2/libssh2/blob/libssh2-1.9.0/src/hostkey.c

CI is still working to compile a new release (https://travis-ci.org/mssun/passforios/builds/614401033). Once it's done, we can roll out a TestFlight for testing. Thanks.

@mssun
Copy link
Owner

mssun commented Nov 20, 2019

In TestFlight 0.8.0 (41), please take a look.

@ismail
Copy link

ismail commented Nov 21, 2019

In TestFlight 0.8.0 (41), please take a look.

Just tested, clone & pull works just fine. Great work!

@mssun
Copy link
Owner

mssun commented Nov 23, 2019

Closed, 0.8.0 (41) has been published in App Store.

Feel free to reopen this or create a new one if there are more related issues.

@mssun mssun closed this as completed Nov 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants