Subject: Re: Question about ssh, tcp, and screen
To: None <netbsd-users@NetBSD.org>
From: Matthias Scheler <firstname.lastname@example.org>
Date: 10/09/2005 08:58:27
In article <email@example.com>,
Onno Ebbinge <firstname.lastname@example.org> writes:
> Do you guys have "KeepAlive" on?
"KeepAlive" is switched on by default and not good enough in my experience.
It e.g. doesn't help with the broken firewall at work.
> A statefull firewall has timeouts on state table entries, ...
> ... keep alives should reset them so they never time out.
There is however a better way. NetBSD's SSH daemon provides an option
called "ClientAliveInterval". It specifies the number of seconds of
idle time after which the server sends an (encrypted) packet without
payload over the SSH connection. I use "ClientAliveInterval 240" at
home which is good enough to defeat the 5 minute timeout of the broken
firewall at work.
Matthias Scheler http://scheler.de/~matthias/