ssh timeout

Sean Miller sean at seanmiller.net
Sat Dec 25 08:33:05 UTC 2004


Vram wrote:

> TCPKeepAlive
>Specifies whether the system should send TCP keepalive messages
>to the other side.  If they are sent, death of the connection or
>crash of one of the machines will be properly noticed.  This
>option only uses TCP keepalives (as opposed to using ssh level
>keepalives), so takes a long time to notice when the connection
>dies.  As such, you probably want the ServerAliveInterval option
>as well.  However, this means that connections will die if the
>route is down temporarily, and some people find it annoying.
>  
>
Thanks for the tip...

I created a ~/.ssh/config file containing:

TCPKeepAlive=yes
ServerAliveInterval=60

...and that seems to have sorted it!

Many thanks,

Sean




More information about the ubuntu-users mailing list