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:

#Period of "null packet" in seconds
ClientAliveInterval 120
#Count after how many not received "null packets" the connections interrupts
ClientAliveCountMax 360

And restart ssh service:

root@server:~# service sshd restart

Credit: https://bjornjohansen.no/ssh-timeout

Leave a Reply

Your email address will not be published. Required fields are marked *