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 ssh
to do that by adding this to your ssh command:
ssh -o TCPKeepAlive=yes -o ServerAliveInterval=50
Written by Kevin Simper
Related protips
1 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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#