On 12 Jan 2026, at 11:07, Tim Woodall wrote:
Is there a portable (not specific to how networking is configured) way of detecting a network change and forcing ssh to close.
Mosh (https://mosh.org/#techinfo or apt info mosh)
carries persistent sessions over UDP, so that the sessions
don't hang whenever the client address changes.
I think it might meet your need.
/Niall