begin quoting David Brown as of Sat, Dec 29, 2007 at 06:04:35PM -0800: > 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.
Nope. Some of the systems on the far side can have the behavior turned off when I set autologout to 0. Others ignore autologout set in the shell, but print a nice little message telling me that I'm being logged out. > 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. Yup. > 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. Yup. Also disabling autologout is necessary, but not always sufficient. And some systems will just log you out regardless. -- The UPS on my firewall is very weak. Power glitches reset my firewall. Stewart Stremler -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
