Turn on keepalives in ssh config...
autossh -M 0 -t user@host tmux new -s sessname -A
This allows me to roam across networks and seemlessly reconnect if the connection fails.
It works on my 120mile commute across multiple networks flawlessly... and across laptop sleeps.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.