I would have thought that ssh (not tcp) keepalives would keep NAT devices from terminating the connection.casner wrote:Scott mentioned turning off some keepalives. That may be counterproductive for this problem. So long as the underlying network connectivity is stable, sending keepalives avoids having NAT devices time out the connection.yronwode wrote:It seems that you're still working on it. Thanks, if so. I keep getting disconnected. It's not urgent, but i would prefer not having to keep re-connecting.
[As an aside, I'll mention that back in the early days of the Internet (late 1970s and 1980s) there were folks working on packet radio who hated keepalives because their network connectivity was intermittent. Their TCP connections would break even if they weren't active during the time of a connectivity loss due to a keepalive being sent automatically. But that was before NATs created the converse problem.]
This is how it is set up in sshd_config:
Code: Select all
ClientAliveInterval 60
ClientAliveCountMax 10
TCPKeepAlive no
-Scott