Live data from Hacker News

Resilient SSH tunnel app (keep alive and conn retries)

news.ycombinator.com

1–3 of 3 posts

Resilient SSH tunnel app (keep alive and conn retries)

#1
Latest version of mole, 0.5.0, adds two new features that increases the resiliency of an established tunnel:

* Idle clients do not get disconnected from the ssh server since Mole keeps sending synthetic packets acting as a keep alive mechanism. * Auto reconnection to the ssh server if the it is dropped by any reason.

Link: https://davrodpin.github.io/mole/

Re: Resilient SSH tunnel app (keep alive and conn retries)

#2
Interesting! I previously tried to do this with autossh, which seems like it does approximately the same thing, but autossh didn't seem to work in my use case. That use case being, I have a laptop with VMs, and ssh tunnels between the host and the VMs; when the laptop goes to sleep, sometimes the connections break when the laptop wakes up, because some timeout expired and sleeping hosts can't send or receive keepalives. I'm not sure why autossh didn't work, but I'll give this one a try!