Skip to content

Instantly share code, notes, and snippets.

@carlosjs23
Created October 15, 2016 02:26
Show Gist options
  • Save carlosjs23/cf4e77ba95a2d4647ed02be249fc89ff to your computer and use it in GitHub Desktop.
Save carlosjs23/cf4e77ba95a2d4647ed02be249fc89ff to your computer and use it in GitHub Desktop.
Remove SSH timeout
1. Open /etc/ssh/sshd_config
2. Search for #TCPKeepAlive yes -> uncoment it, then set to no
3. Search for #ClientAliveInterval 0 -> uncoment it, then set to 30
4. Search for #ClientAliveCountMax 3 -> uncoment it, then set to 100
5. Save and restart: systemctl restart sshd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment