Skip to content

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

Closed

Description

@m0a0k0s

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

Activity

  1. Rob-Hague commented on Apr 29, 2025

    @Rob-Hague
    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?

  2. m0a0k0s commented on Apr 29, 2025

    @m0a0k0s
    Author

    net 9.0, happens every time in new version

  3. Rob-Hague commented on Apr 30, 2025

    @Rob-Hague
    Collaborator

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

  4. m0a0k0s commented on Apr 30, 2025

    @m0a0k0s
    Author

    I've just sent the address in the email.

  5. Rob-Hague commented on May 2, 2025

    @Rob-Hague
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions