ssh time out

Mike Williams dmikewilliams at gmail.com
Sun Jun 28 09:04:32 UTC 2009


On Sat, Jun 27, 2009 at 9:50 PM, Konstantin Svist<fry.kun at gmail.com> wrote:
> Patrick Dupre wrote:
>> Hello,
>>
>> I need to increase the timeout of the ssh session, so I set
>> ClientAliveInterval 7200
>> in the file: /etc/ssh/sshd_config
>> but I did not observe any change.
>> What am I doing wrong ?

Sometimes things in between the two systems you have control over
cause problems that make these settings not work as you would expect.

I have seen cases where disabling both keep alive message types worked
best in terms of not having the connections get terminated.

ClientAliveInterval  0  # don't send keep alive messages
TCPKeepAlive no  # and no TCP keep alive messages either (default is yes)

Guess it was a firewall issue or some intermittent connectivity
problem, but disabling the those two things made for more stable
sessions.  One downside is that when a connection gets terminated
there is a zombie process left on the server that has to be killed
off.

Mike




More information about the fedora-list mailing list