Changing port hangs sshd

Wolfgang S. Rupprecht wolfgang+gnus200602 at dailyplanet.dontspam.wsrcc.com
Tue Feb 7 15:57:23 UTC 2006


Andy Green <andy at warmcat.com> writes:
> Mauriat Miranda wrote:
>
>> Does anybody have any idea or hints? Seen something like this before?
>> Am I missing something critical (obvious)?
>
> A customer had a similar problem.  It was caused by a firewall / router
> box (sorry, forgot which) at his end killing the connection because of
> its own (stupid) idea that the connection was idle for too long.

I've seen this even for cheap NAT boxes that time-out the NAT mapping
after 10 minutes or so of not seeing a packet.  Adding the following to 
/etc/ssh/sshd_config fixed that problem, along with cleaning up any
idle connections that are related to a machine just dropping off the
net without first exiting sshd.

      ClientAliveInterval  60
      ClientAliveCountMax  30

-wolfggang
-- 
Wolfgang S. Rupprecht                http://www.wsrcc.com/wolfgang/
Direct SIP URL Dialing: http://www.wsrcc.com/wolfgang/phonedirectory.html




More information about the fedora-list mailing list