Created
December 6, 2018 06:03
-
-
Save nileshsimaria/f497c3e925308f8e8f14c53c26aed114 to your computer and use it in GitHub Desktop.
Prevent SSH from kicking you out from inactive session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Modify /etc/ssh/sshd_config | |
ClientAliveInterval 120 | |
ClientAliveCountMax 720 | |
This will not kick you off even if you are inactive for 24 hours. After that it will kick you out. | |
$ sudo service ssh reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment