buyntg
Last Updated: February 25, 2016
·
633
· 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

17737

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

over 1 year ago ·