-
-
Notifications
You must be signed in to change notification settings - Fork 940
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 private keys are not supported. #20
Comments
I would also recommend ecdsa-sha2-nistp256 which is a default for ubuntu servers.
|
This issue is over a year old. Are there any plans to support modern ciphers and macs in SSH.NET? |
Does anyone know of a way to simply add ecdsa-sha2-nistp256 to the key exchange algorithm manually? I'm trying to connect to an SFTP site and it is telling me: No suitable authentication method found to complete authentication (publickey,keyboard-interactive). |
I get the same errors. ed25519 keys can't be used. This is actually a dealbreaker since more and more defaults and policies are moving away from RSA in favour of ecdsa and ed25519. |
FYI, I'm working now on this PR #489 to be able to use ECDSA (no ed25519). These Keys already work with this diff:
But I also want to take a look if these can be added accordingly: |
Just a short update, cause of interest and need I spend now some time to update SSH.NET in this area: There are now working (at least on my machine ;)) Diffs for:
If anybody wants to help and/or test those Diffs, it would be highly appreciated. |
@darinkes repos are now deleted - does anyone have the code? |
@darinkes' changes have landed in the develop branch, and will be part of the next release. |
@drieseng Is it safe to use the current develop branch snapshot? There hasn't been a release and this merge is almost a year ago, the last commit almost half a year. To be able to use it, I'd need to publish an unofficial NuGet package of a pre-release myself. |
@ygoe There's a 2020.0.0-beta1 pre-release package., which should be safe to use. |
Something isn't working here. When I try to use an Ed25519 key in OpenSSH format, I get this error message: Exception: SshException Hasn't this been included in the NuGet package version 2020.0.1? Update: The aforementioned is for password-protected keys. Unprotected keys give me this error message instead: Exception: ArgumentOutOfRangeException |
That PR is still open, so I'm not sure where to get a build that includes it. I just created it with puttygen, nothing fancy. Just create a new key with Ed25519, add its public part to the SSH config and export in any format, with and without password, until it may work. There are so many incompatible formats and puttygen does something else each time for each key type that I cannot predict what's going on. |
Ok, made multiple test with puttygen and those keys work without an issue. puttygen: Release 0.74 You can send me one of your failing keys to "stefan.rinkes at gmail.com" if you like. |
@ygoe thanks for sending a test keypair. This really need #614 to be merged. Here is the issue in the old code: https://github.com/sshnet/SSH.NET/pull/614/files#diff-5ff67ce9967b2cc4fc2bbeeb0668079c1f46873bdb011ce12ea67bc81c112dbcL484 Hardcoded length values. Pinging @drieseng so he is aware there is an issue with current OpenSSH-Format Parser which "accidentaly" also got fixed by #614 |
Please consider adding support for ed25519 private keys.
The text was updated successfully, but these errors were encountered: