Hi,
One of our machines has a problem every couple of weeks where it stops accepting new SSH connections. Existing ones work fine, but any attempt to create a new one fails with this error:
ssh_exchange_identification: Connection closed by remote host
Restarting the sshd fixes the problem for another couple of weeks, but it keeps re-occurring. Any pointers as to how this could be fixed (for good!) would be very much appreciated. The machine is running Fedora Core 1.
Regards,
-- Alex
On Tuesday 03 May 2005 17:39, Alex Greg wrote:
Hi,
One of our machines has a problem every couple of weeks where it stops accepting new SSH connections. Existing ones work fine, but any attempt to create a new one fails with this error:
ssh_exchange_identification: Connection closed by remote host
Restarting the sshd fixes the problem for another couple of weeks, but it keeps re-occurring. Any pointers as to how this could be fixed (for good!) would be very much appreciated. The machine is running Fedora Core 1.
Could it be co-incident with a new DHCP lease?
Regards, Mike Klinke
On 5/3/05, Mike Klinke lsomike@futzin.com wrote:
On Tuesday 03 May 2005 17:39, Alex Greg wrote:
Hi,
One of our machines has a problem every couple of weeks where it stops accepting new SSH connections. Existing ones work fine, but any attempt to create a new one fails with this error:
ssh_exchange_identification: Connection closed by remote host
Restarting the sshd fixes the problem for another couple of weeks, but it keeps re-occurring. Any pointers as to how this could be fixed (for good!) would be very much appreciated. The machine is running Fedora Core 1.
Could it be co-incident with a new DHCP lease?
Regards, Mike Klinke
No - the machine doesn't use DHCP, it has two static IP addresses.
Regards,
-- Alex
On Wednesday 04 May 2005 03:36, Alex Greg wrote:
On 5/3/05, Mike Klinke lsomike@futzin.com wrote:
No - the machine doesn't use DHCP, it has two static IP addresses.
OK, you have a machine with two NIC cards. Intermittantly, when you log in to the machine, from any other machine, via ssh via either NIC card you get the error message?
What is your method of authenticating, shadow, NIS, LDAP?
Are you using hosts.deny, hosts.allow? If so, tell us about the contents of these files?
Is your sshd configuration an "out of the box" configuration?
Have you noticed DNS problems with this machine too?
Are they any notes in your syslog file at the time of the problem?
Next time you start sshd add "-ddd" to give you more debug info.
Regards, Mike Klinke
On Tue, 2005-05-03 at 23:39 +0100, Alex Greg wrote:
Hi,
One of our machines has a problem every couple of weeks where it stops accepting new SSH connections. Existing ones work fine, but any attempt to create a new one fails with this error:
ssh_exchange_identification: Connection closed by remote host
Restarting the sshd fixes the problem for another couple of weeks, but it keeps re-occurring. Any pointers as to how this could be fixed (for good!) would be very much appreciated. The machine is running Fedora Core 1.
Regards,
-- Alex
What version of sshd?
Thomas
On 5/4/05, Mike Klinke lsomike@futzin.com wrote:
OK, you have a machine with two NIC cards. Intermittantly, when you log in to the machine, from any other machine, via ssh via either NIC card you get the error message?
Yes, this is correct.
What is your method of authenticating, shadow, NIS, LDAP?
Shadow
Are you using hosts.deny, hosts.allow? If so, tell us about the contents of these files?
No, we're not using these.
Is your sshd configuration an "out of the box" configuration?
Yes - it's the package that comes with FC1 (OpenSSH_3.6.1p2).
Have you noticed DNS problems with this machine too?
Nope.
Are they any notes in your syslog file at the time of the problem?
Nothing. Nothing in /var/log/secure either.
Next time you start sshd add "-ddd" to give you more debug info.
I've enabled this and will post back with the error next time it goes wrong.
Many thanks for your help, and sorry for the late reply.
-- Alex