[sf-lug] keep alive time for an ssh connection

Rick Moen rick at linuxmafia.com
Sun Dec 21 00:00:15 PST 2008

Quoting Rick Moen (rick at linuxmafia.com):

> Quoting Alex Kleider (a_kleider at yahoo.com):
> > I tried 
> > ssh -o TCPKeepAlive <machine>
> > but it made no difference!
> Hmm, you got the syntax wrong.  There's a missing "=yes", there.

No equals sign, actually.  "TCPKeepAlive yes".

However, it's actually "ServerAliveInterval 5" (or such) that you
actually need.  Flipping on the "TCPKeepAlive" boolean just enables the
_capability_, but the default frequency of keepalive messages, if you
do nothing about "ServerAliveInterval", is "never".

More information about the sf-lug mailing list