Skip to content
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

Server response does not contain SSH protocol identification #571

Closed
folibis opened this issue Jul 30, 2019 · 2 comments
Closed

Server response does not contain SSH protocol identification #571

folibis opened this issue Jul 30, 2019 · 2 comments

Comments

@folibis
Copy link

folibis commented Jul 30, 2019

The test code is:

using (SshClient ssh = new SshClient(host, 22, "root", "root"))
{
     ssh.Connect();
     SshCommand response = ssh.RunCommand(command);      
     string response =  response.Result;
}

I can connect with Putty w/o any problem. Connection from VC cause to the error from the title.

@JohnLBevan
Copy link

JohnLBevan commented Mar 5, 2020

It's possible that this behavior could be caused by a firewall on the SFTP server's side / them rejecting your request as your IP's not whitelisted. Looking at a WireShark trace when we've seen this issue I see [FIN, ACK] returned by the server; implying that they're requesting the termination.

@readonlymaio
Copy link

Late to the party but, I just to inform that i had the same (random) issue and it was caused by MaxStartUps parameter on the ssh/sftp server side. The sftp server was exposed on the internet with no source ip blocking... if the number of non authenticated connection exceedes the MaxStartUps the sftp server drops any new connection and you get "Server response does not contain SSH protocol identification"

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

3 participants