Skip to content

Instantly share code, notes, and snippets.

@nileshsimaria
Created December 6, 2018 06:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nileshsimaria/f497c3e925308f8e8f14c53c26aed114 to your computer and use it in GitHub Desktop.
Save nileshsimaria/f497c3e925308f8e8f14c53c26aed114 to your computer and use it in GitHub Desktop.
Prevent SSH from kicking you out from inactive session
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