
13 Jul
2022
13 Jul
'22
1:58 p.m.
On Wed, 13 Jul 2022 13:43:44 +1200, Peter Reutemann wrote:
But that doesn't get around the problem of my ssh sessions being defunct or closed ("broken pipe").
Is this because of a NAT entry in your home router timing out from being idle? You can prevent this by configuring SSH are-you-there messages from either or both ends. See the ServerAliveInterval and ServerAliveCountMax options in ssh_config(5), or ClientAliveInterval and ClientAliveCountMax in sshd_config(5). Both ends also have TCPKeepAlive, but note that is sent unencrypted. These options are supposed to be for detecting broken connections, but they will also reset router idle timers.