casner wrote: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.
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.
[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.]
I would have thought that ssh (not tcp) keepalives would keep NAT devices from terminating the connection.
This is how it is set up in sshd_config:
Code: Select all
If I'm correct, this should withstand an outage of up to 10 minutes. Am I out to lunch?