On Sat, Dec 29, 2007 at 06:38:59PM -0800, Brad Beyenhof wrote:
On Dec 29, 2007 6:04 PM, David Brown <[EMAIL PROTECTED]> wrote:
On Sat, Dec 29, 2007 at 05:04:46PM -0800, SJS wrote:
>If I ssh into a remote machine, my connection stays put, for awhile. If
>I'm idle for too long, the remote system logs me out, terminates my
>connection, and after awhile, I'll log back in again.
It's probably not the remote system logging you out, it's probably a
firewall forgetting the connection and not allowing any more traffic.
Or it may be that sshd on the server doesn't have KeepAlive set. My
servers have:
KeepAlive yes
ClientAliveInterval 2m
ClientAliveCountMax 120
in /etc/ssh/sshd_config, and that keeps things up indefinitely.
Interesting that you have both KeepAlive and the ClientAlive part. I've
seen firewalls that ignored TCP keep alive, and had to use the Client (or
Server) Alive packets.
One annoying part about these is that they require the connection to
remain. If I don't use keepalives, I can reboot my DSL modem and my
connections survive. Those that need the keepalives will decide the
connection has timed out and disconnect.
Dave
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list