Hacker News new | ask | show | jobs
by amelius 1988 days ago
Do you know of some mechanism that makes ssh sessions survive a power-suspend (on a Linux desktop)?
3 comments

That is pretty much an inverse problem ;)

If you care about that you probably should use mosh as that does solve that by design and not by random chance.

On the other hand using VPN with fixed tunneled endpoint IPs causes idle TCP connections going through it to remain connected pretty much indefinitely.

Just don’t use keep-alive feature. Without keep-alive traffic the peers have no way to tell the interface was transiently unavailable.
This is needed, in addition to the machine getting the same IP address back after resume (static assignment or long DHCP leases).
You should check out mosh.