Setting sshd timeout

Here’s something that I usually forget to change from the default and then get annoyed when my terminal hangs.

As root open your sshd_config file in an editor.

Add the following lines:

Reload the sshd daemon.

Done. That will keep you logged in for 1 hour with no activity. (1200 seconds x 3)