Last Updated: February 25, 2016
·
2.158K
· kevinsimper

SSH Tunnel keepalive

Sometimes your tunnel is unactive for a long periode and will disconnect itself after some time being inactive, that can be tiring checking that all the time, so the solutions is to send a keepalive command sometimes. You can configure sshto do that by adding this to your ssh command:

ssh -o TCPKeepAlive=yes -o ServerAliveInterval=50

1 Response
Add your response

the other variant is obviously to put it into /etc/ssh/sshd_config at least on your own server(s)

over 1 year ago ·