What would this message mean?
protocol error: unexpected packet type SSH_MSG_EXT_INFO
The stack trace is not much help:
EnterpriseDT.Net.Ftp.Ssh.SFTPException
at EnterpriseDT.Net.Ftp.Ssh.SSHFTPClient.Connect()
at EnterpriseDT.Net.Ftp.SecureFTPConnection.Connect()
The code works fine on my dev box but when run on the hosting server, connecting to the same FTP server, this error pops up occasionally. If the connect is attempted again, it works successfully.
The server log doesn't show anything unusual. All I can see there is "session opened" followed by "received disconnect".
There isn't much in the FTP component log, either.
INFO [ProtocolNegotiationHandler] 9 Sep 2025 09:58:02.461 : FTPConnection.1 Server version = 'SSH-2.0-""'
INFO [PuTTYPrivateKeyFormat3] 9 Sep 2025 09:58:03.040 : Unpacking puTTY formatted private key 3
ERROR [SSHFTPClient] 9 Sep 2025 09:58:04.977 : Failed to connect - closing connection
ERROR [SSHFTPClient] 9 Sep 2025 09:58:04.977 : EnterpriseDT.Net.Ftp.Ssh.SFTPException: protocol error: unexpected packet type SSH_MSG_EXT_INFO
ERROR [SSHFTPClient] 9 Sep 2025 09:58:04.977 : at EnterpriseDT.Net.Ftp.Ssh.SSHFTPClient.Connect()
This seems like a similar requirement, granted on the Ruby net-ssh implementation.
Ignore received SSH_MSG_EXT_INFO messages instead of raising an exception