Dropping SSH connections over the internet
Joachim Schrod
jschrod at acm.org
Mon Jan 14 11:23:29 UTC 2008
Derek Broughton wrote:
> Alex Janssen wrote:
>
>> I regularly connect from home to a Linux box hidden behind a router at
>> work via SSH. Most times it is reliable. Other times the connection
>> just stops. I guess my packets just stop getting to the server. I can
>> logon immediately with another shell, so the server appears to be ok.
>
> ssh will generally drop inactive connections - there's a keepalive option.
TCPKeepAlive (default: yes) is the option that causes the drops.
It's better be set to no in flaky communication settings. There,
ServerAliveInterval and ServerAliveCountMax are the options to look
for.
Joachim
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod Email: jschrod at acm.org
Roedermark, Germany
More information about the ubuntu-users
mailing list