[CentOS] ssh ServerTimeOut

Tue May 12 03:28:27 UTC 2009
nate <centos at linuxpowered.net>

grace rante wrote:
> There's a debian specific flag for ssh called 'ServerTimeOut' which
> allows ssh to give up if no data from the server
> is received for the specified number of seconds.
>
> Does anybody know the equivalent option for centos-ssh?

Just wondering what you need this for? the TCP timeout(s) in the
OS will terminate the session for you if no data is received,
are you interested in dramatically shortening that window for
some reason?

See the man page for ssh_config for these options:
ServerAliveInterval
ServerAliveCountMax

I use the first one to maintain ssh sessions across stateful
firewalls, otherwise the firewalls often terminate idle
connections.

nate