SSH Timeout? (Linux)
PROBLEM: I would like to see how fast is boot of my machine!
SOLUTION: No problem!
[?] What is SSH?
https://www.youtube.com/watch?v=X9jAjG3PWPo
By adjusting SSH timeout we can achieve a balance between security (if you forget to close your SSH client) and irritating interruption of your work.
You can adjust configure your client or server. I prefer to do this on the server, because you don’t have to do this on every client for every user.
Just edit SSH deamon config in /etc/ssh/sshd_config like this:
1 2 3 4 |
#Period of "null packet" in seconds <strong>ClientAliveInterval 120</strong> #Count after how many not received "null packets" the connections interrupts <strong>ClientAliveCountMax 360</strong> |
And restart ssh service:
1 |
root@server:~# service sshd restart |