Skip to content

Instantly share code, notes, and snippets.

@khoatran
Created May 21, 2016 05:56
Show Gist options
  • Save khoatran/01d0aa9a66f74a125e487bb8aa8d5bb8 to your computer and use it in GitHub Desktop.
Save khoatran/01d0aa9a66f74a125e487bb8aa8d5bb8 to your computer and use it in GitHub Desktop.
Extend SSH timeout
#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