- 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
Created
April 18, 2023 14:18
-
-
Save brunoleles/2b28265cb03ddc4f0d46590d98709b10 to your computer and use it in GitHub Desktop.
Ubuntu - SSH Keep Alive
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment