You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
An established connection was aborted by the server, ecdh-sha2-nistp256 #1636
After updating to 2025.0.0 start receiving ' An established connection was aborted by the server ' error.
at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout)
at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle)
at Renci.SshNet.Session.ConnectAsync(CancellationToken cancellationToken)
at Renci.SshNet.BaseClient.CreateAndConnectSessionAsync(CancellationToken cancellationToken)
at Renci.SshNet.BaseClient.ConnectAsync(CancellationToken cancellationToken)
The issue was DSA removal (#1558). Apparently the library does not check for matching host key algorithms before continuing the key exchange, causing misleading/less informative issues like this one. That could be improved
Activity
Rob-Hague commentedon Apr 29, 2025
hmm, there were not really any changes to ECDH key exchange between 2024.2.0 and 2025.0.0 so don't have an obvious idea
what version of .NET is the app using? and does the error happen every time?
m0a0k0s commentedon Apr 29, 2025
net 9.0, happens every time in new version
Rob-Hague commentedon Apr 30, 2025
is the server publicly reachable, or can you send the packet trace?
m0a0k0s commentedon Apr 30, 2025
I've just sent the address in the email.
Rob-Hague commentedon May 2, 2025
The issue was DSA removal (#1558). Apparently the library does not check for matching host key algorithms before continuing the key exchange, causing misleading/less informative issues like this one. That could be improved