I've been using this for the past few months to connect to my VPSes, and I'm pretty happy with it: https://eternalterminal.dev

I come back to the laptop after a break and the connection stays on like nothing happened, same when switching networks etc.

(Yes I know you'll tell me I should use screen/tmux…)

Eternal Terminal

Remote terminal for the busy and impatient

Eternal Terminal
@mackuba I only discovered this recently while on a trip on horrible internet. It’s amazing and I’m happy there’s a modern https://mosh.org now.
Mosh: the mobile shell

Mobile shell that supports roaming and intelligent local echo. Like SSH secure shell, but allows mobility and more responsive and robust.

Mosh