Carl Lowenstein wrote:
Frequently I log in by ssh to a remote computer. If I don't keep
using the connection, after a few minutes I get the message
" Read from remote host deeptow: Connection reset by peer
Connection to deeptow closed."
Being that you're behind a NAT router (read from another message), this
is almost certainly a translation timeout problem. I used to have the
same problem at work -- the stupid NAT devices (PIX firewalls) have a
translation timeout of 1.5 hours, and I often hit it.
Add the following to your personal or system-wide ssh configuration file:
TCPKeepAlive yes
ServerAliveInterval 30
ServerAliveCountMax 3
That way it pings the server every 30 seconds. If, after a minute and a
half, the machine doesn't respond, the connection is dropped. This also
has the benefit of keeping translation entries open.
<rant>
This is just one of the many reasons why NAT is a pain in the ass. We
have a suitable fix: IPv6 -- let's use it.
</rant>
Try that, and your problem should get a nice band-aid. :)
Talk to you later,
-Kelsey
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list