Wednesday, June 29, 2011

Prevent ssh connection from disconnecting

$ man ssh_config
$ cat /etc/ssh/ssh_config
...
#   ProxyCommand ssh -q -W %h:%p gateway.example.com
    SendEnv LANG LC_*
    HashKnownHosts yes
#   GSSAPIAuthentication yes
#   GSSAPIDelegateCredentials no

ServerAliveInterval 30
ServerAliveCountMax 4

No comments: