ssh_exchange_identification: Connection closed by remote host
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Apparently, there may be a policy about responding to a 10 year old post, but this was Google's first search result.
I investigated an occurrence of this problem today. The error message seems represent a generic "failure to connect" condition reported by the client, when the sshd refused to fork more threads to handle the incoming requests. As I increased the MaxStartup setting in /etc/ssh/sshd_config, incoming requests kept consuming all the new forks, leading me to concluded the effect of a brute force ssh attack.
Thankfully, the attack is temporary, and the only long term effect is heightened paranoia. Had the attack been persistent, effective resolution would require restricting access at a network firewall.
No, there's not a policy about re-opening old threads, as long as you add something useful to it. In your case, you certainly did, and thank you for sharing the symptoms as well as the solution.
Any thoughts on what might cause this error on an intermittant (but frequent) basis? We have a very old Solaris box (5.7) at work that frequently throws this error when we try to ssh in to it. Chances are 50-50 that the ssh session will work. Try again, it might work. Try once again, it might not. Unpredictable, but very frequent. This box is specifically running a very old version of Solaris as we use it for legacy apps that have some dependency on the older OS. Apps that nobody is going to update, so we put them out to pasture on this old server until they finally die a natural death. Still, it's annoying when we can't log in to the dinosaur server reliably.
i noticed i run into some ssh problems on older linx boxes because the clock battery is bad/old... try updating the time on your box.. if it works then change the cmos battery
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.