Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

Suddenly ssh_exchange_identification-Failure

mbscholz
Occasional Advisor

Suddenly ssh_exchange_identification-Failure

Hello everybody,

we sometimes have a strange problem: Some of our servers suddenly don't allow any login (neither via ssh nor via local Terminal nor via Ilo-Console) anymore. Some services seem to crash aswell. When trying to connect via ssh the response is "ssh_exchange_identification: Connection closed by remote host", when trying to connect via Ilo or locally there's simply no response after entering the username. Our only chance is to reboot the server, after that everything works fine, just as before.

We faced this problem on Debian (Etch and Lenny) as well as on RedHat (RHEL5) systems. It happens every few weeks on another machine, so investigating is quite difficult, especially as all logfiles die in the moment of the crash. The machines are of different types, such as DNS or Radius Servers.

Has anybody experienced a similar problem (and an idea of the reasons for it)?

I'm thankful for any help.

Best regards,
Michael

PS: Just to state this out, this is not a problem of hosts.deny/allow as it happens suddenly.
7 REPLIES
Jupinder Bedi
Respected Contributor

Re: Suddenly ssh_exchange_identification-Failure

hello ,

There is no need to reboot the server everytime . smiple login from the console and restart the sshd daemon.

Also this problem is due to the old version of ssh . Please apply the latest patch and it will resolve your issue.

Good luck
All things excellent are as difficult as they are rare
Michal Kapalka (mikap)
Honored Contributor

Re: Suddenly ssh_exchange_identification-Failure

mbscholz
Occasional Advisor

Re: Suddenly ssh_exchange_identification-Failure

Thanks to you both. Unfortunately there's no way to restart the sshd (as I wrote there's no way to get a terminal, not via ssh nor locally).

The link fits my problem a bit better, but doesn't provide a solution :-(

I'm really curious if somebody else has this problem...and found a solution, of course.

Best regards,
Michael
Jupinder Bedi
Respected Contributor

Re: Suddenly ssh_exchange_identification-Failure

I faced the same problem on hpux server and I installed the latest recommended patch and finally the server is running fine .

Thats why I told you to install the latest patch of ssh
All things excellent are as difficult as they are rare
mbscholz
Occasional Advisor

Re: Suddenly ssh_exchange_identification-Failure

Hmm, alright. Unfortunately our systems are up to date, so this won't help. Fascinatingly this problem occured on the ssh-server of the ilo-Board today. It appears to me as if this was a bug in the ssh-server, in all major versions...
mbscholz
Occasional Advisor

Re: Suddenly ssh_exchange_identification-Failure

An Update to this: It seems to happen after an uptime of 55 or 111 days. Can anybody confirm this? While googling I noticed that this problem seems to be quite widespread whithout solutions...probably some time somebody passes by this entry and can confirm this :)
Gou_1
Occasional Visitor

Re: Suddenly ssh_exchange_identification-Failure

This has been happening to us too. We are running RHEL 4 and like you, it just started happening all of a sudden. I'm starting to suspect a hardware problem. Though, there are no logs.

This guy had a similar problem and he said something about the SCSI card
http://www.unix.com/linux/87930-ssh_-exchange-identification-connection-closed-remote-host.html