Quantcast
Channel: Active questions tagged ssh - Ask Ubuntu
Viewing all articles
Browse latest Browse all 879

How to prevent autossh from becoming stuck once in a while?

$
0
0

I am using autossh to build a reverse ssh tunnel but from time to time the tunnel stops working and I need to kill autossh and start it again.

/etc/cron.d/autossh@reboot autossh -f -nNT -R 3269:intranet.example.com:3269 public.example.com &

autossh seems to remain in a strange state, where the forwarded port is still open but you get no response from the other side. By restarting autossh this is solved.

How can I prevent this problem from occurring?


Viewing all articles
Browse latest Browse all 879

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>