-
-
Notifications
You must be signed in to change notification settings - Fork 951
Key exchange negotiation failed #1105
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
Comments
Is the server OpenSSH 6.5 or 6.6? @okarpov |
ssh -V |
Then the case is different with mine. I got the same error message when connect to OpenSSH 6.6 and I believe it is caused by the wrong Bignum encoding in OpenSSH 6.5/6.6. OpenSSH fixed the issue in 6.7 (and 6.6.1). See https://www.openssh.com/txt/release-6.7 |
Hi @WojciechNagorski, could we consider removing Alternatively, we could expose some event during negotiation so that the caller can attach a handler to the event and filter the key exchange algorithems. Here's the line where we could add the filter logic: https://github.com/sshnet/SSH.NET/blob/develop/src/Renci.SshNet/Session.cs#L608 I can create PR if that's okay. |
FYI, this is the root fix in OpenSSH: openssh/openssh-portable@adbfdbb |
@scott-xu can you create a new issue for this. I didn't know about this problem. |
#1191 is created. |
Version 2023.0.0 has been published https://www.nuget.org/packages/SSH.NET/2023.0.0 |
Renci.SshNet.Common.SshConnectionException: Key exchange negotiation failed.
at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout) in \SSH.NET-rsa-sha2-256\src\Renci.SshNet\Session.cs:line 977
at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle) in \SSH.NET-rsa-sha2-256\src\Renci.SshNet\Session.cs:line 874
at Renci.SshNet.Session.ConnectAsync(CancellationToken cancellationToken) in \SSH.NET-rsa-sha2-256\src\Renci.SshNet\Session.cs:line 739
at Renci.SshNet.BaseClient.CreateAndConnectSessionAsync(CancellationToken cancellationToken) in \SSH.NET-rsa-sha2-256\src\Renci.SshNet\BaseClient.cs:line 545
at Renci.SshNet.BaseClient.ConnectAsync(CancellationToken cancellationToken) in \SSH.NET-rsa-sha2-256\src\Renci.SshNet\BaseClient.cs:line 284
at
The text was updated successfully, but these errors were encountered: