Skip to content

An established connection was aborted by the server, ecdh-sha2-nistp256 #1636

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

Open
m0a0k0s opened this issue Apr 29, 2025 · 5 comments
Open

Comments

@m0a0k0s
Copy link

m0a0k0s commented Apr 29, 2025

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)

Image

@Rob-Hague
Copy link
Collaborator

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
Copy link
Author

m0a0k0s commented Apr 29, 2025

net 9.0, happens every time in new version

@Rob-Hague
Copy link
Collaborator

is the server publicly reachable, or can you send the packet trace?

@m0a0k0s
Copy link
Author

m0a0k0s commented Apr 30, 2025

I've just sent the address in the email.

@Rob-Hague
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants