-
-
Notifications
You must be signed in to change notification settings - Fork 387
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
ECDSA and ed25519 keys do not work #552
Comments
pygit2 or libgit2 do not set any restrictions on the type of key. The key path is given directly to libssh2, so if it's refusing to accept them, it's a libssh2 issue. The specific error message "Callback returned error" also comes from libssh2 as well. |
Hi, I know this is an old post, but I stumbled on this very problem. As of today, libssh2 does not support elliptic curve keys. If you try to use ecdsa with libgit2 (which use libssh2 under the hood), you will have a TL;DR: Libssh2 does not support elliptic curve. Source : https://www.libssh2.org/ (look for Hostkey Types) Cheers, |
A relevant issue for ED25519: libssh2/libssh2#39. I have a patch to enable ED25519 in libssh2. Hope that helps those who need it! |
I have a private fork of libssh2 that supports ECDSA keys using the OpenSSL backend. I hope to have a bit of time to land it back to the public project after the project I'm working on ships. |
This is supported by libssh since 1.9.0 from its changelog, https://libssh2.org/changes.html#1.9.0 |
Hello,
I'm not sure if this is the right place to file the bug (maybe the bug's in libgit2), but this is where I encountered it, and I haven't tried to duplicate it in libgit2. When using SSH, ECDSA and ed25519 keys don't work. They fail with this error:
The traceback for ECDSA is similar.
Yes, I have added my ed25519 and ECDSA keys to github, so I know that's not the problem. RSA keys also work just fine.
The text was updated successfully, but these errors were encountered: