Skip to content

Instantly share code, notes, and snippets.

@khoatran
Created June 2, 2017 04:50
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 khoatran/d1c4376acb929fd2d9ecaf60175e2eb2 to your computer and use it in GitHub Desktop.
Save khoatran/d1c4376acb929fd2d9ecaf60175e2eb2 to your computer and use it in GitHub Desktop.
Fix the issue short SSH timeout on Linux server
It helps to add ClientAliveInterval of 60 mins into SSH config
sudo echo 'ClientAliveInterval 60' >> /etc/ssh/sshd_config
#Then, restart SSH
#Below is the command to restart ssh on Ubuntu based
sudo service ssh restart
#Other Linux distribution
sudo service sshd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment