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
ProtocolError When Connecting to AWS After Upgrading to 2025.0.0 #1641
After upgrading from 2024.2.0 to 2025.0.0, I am receiving the following error:
Renci.SshNet.Common.SshConnectionException: The connection was closed by the server: Failed to read binary packet data! (ProtocolError).
My app connects to sftp.section111.cms.hhs.gov:10022, but according to FileZilla's output, that's actually psc-t-nlb-xx-lb-v02-10f9bb095377905b.elb.us-east-1.amazonaws.com. My code has zero configuration on the connection, so maybe there's something I need to add? It's just:
var sftp = new SftpClient("sftp.section111.cms.hhs.gov", 10022, _config.MmseaSftpUsername, _config.MmseaSftpPassword);
sftp.Connect();
Likewise, in FileZilla I just set a username, PW, server, & port as an SFTP connection with everything else set to defaults. I reverted my app back to SSH.NET 2024.2.0 and the connection works fine.
I noticed this issue from two years ago could possibly be related? #1199 I am not the host of the SFTP site, CMS is, so I can't provide much info on their servers other than that appear to be using AWS.
This is the same as #1635. Unfortunately the US Government is using a DSA (ssh-dss) host key ?, support for which was dropped in 2025.0.0 for being too legacy to test
The error from the library is not very helpful. I will put up a change shortly to improve it
Activity
Rob-Hague commentedon May 11, 2025
This is the same as #1635. Unfortunately the US Government is using a DSA (ssh-dss) host key ?, support for which was dropped in 2025.0.0 for being too legacy to test
The error from the library is not very helpful. I will put up a change shortly to improve it