Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Commented Unassigned: Server response does not contain SSH protocol identification [2800]

$
0
0
Getting an error Renci.SshNet.Common.SshConnectionException: Server response does not contain SSH protocol identification. at Renci.SshNet.Session.Connect() at Renci.SshNet.BaseClient.Connect() when SFTP server was configured not to return server version.

Would be nice if there was a way to disable version check, possibly configurable?
Comments: ** Comment from web user: ceciliaschultz **

I have s similar problem.
My application uses Renci.SShNet.dll to ftp a file nightly. Approximately every 3 weeks it fails with the error "Server response does not contain SSH protocol identification", which is where the library is attempting to do a socket read of the version:

public void Connect()
{
//.......

// Get server version from the server,
// ignore text lines which are sent before if any
while (true)
{
var serverVersion = string.Empty;
SocketReadLine(ref serverVersion, ConnectionInfo.Timeout);
if (serverVersion == null)
throw new SshConnectionException("Server response does not contain SSH protocol identification.");
versionMatch = ServerVersionRe.Match(serverVersion);
if (versionMatch.Success)
{
ServerVersion = serverVersion;
break;
}
}

//....
}


So when it fails, I have to manually run it the following morning, (with no problems). Then the job continues fine for abut 3 weeks, then it fails again, and so on...

I cannot imagine why it would fail every so often... and then it works fine without doing anything....


Viewing all articles
Browse latest Browse all 1026

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>