Skip to content

Instantly share code, notes, and snippets.

@brunoleles
Created April 18, 2023 14:18
Show Gist options
  • Save brunoleles/2b28265cb03ddc4f0d46590d98709b10 to your computer and use it in GitHub Desktop.
Save brunoleles/2b28265cb03ddc4f0d46590d98709b10 to your computer and use it in GitHub Desktop.
Ubuntu - SSH Keep Alive
  • Open: /etc/ssh/sshd_config
  • Change:
    • TCPKeepAlive yes
    • ClientAliveInterval 100 (desired interval in seconds )
  • Restart ssh service (mine was, sudo service ssh restart )
  • To validade, open a ssh coneection and on other terminal, run sudo tcpdump -n -tttt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment