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.

I have ssh connections that will stay up for weeks or months without any
activity (no keep alive traffic).  There isn't anything inherent about TCP
that does this, just firewalls that forget their state after a while.

As a compromise, with ssh, set the ServerAliveInterval on the client to
some value, it shouldn't need to be small, just enough to keep the firewall
from shutting down the connection.  This is the interval that the client
will ping the server.  It doesn't affect the user channel.

Dave


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to