News for hackers. Stuff that matters.

Resilient SSH tunnel app (keep alive and conn retries)

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/

( 2 comments | 10 points | on HN )
Re:Resilient SSH tunnel app (keep alive and conn retries) by jimrandomh on Thursday October 03, 2019 @08:25PM (#21153717)
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!
Re:Resilient SSH tunnel app (keep alive and conn retries) by wikibob on Saturday October 05, 2019 @07:11AM (#21164894)
For the uninformed, can you explain how this is different or better than Mosh?