On 5/22/06, Carl Lowenstein <[EMAIL PROTECTED]> wrote:
On 5/19/06, Carl Lowenstein <[EMAIL PROTECTED]> wrote:
> On 5/18/06, kelsey hudson <[EMAIL PROTECTED]> wrote:
> > 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."
> >
>
> >          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.
> >
>
> This seems to have cured the problem.  The next question is:  why are
> these ssh configuration parameters not mentioned in ssh_config(5) or
> in /etc/ssh/ssh_config?  Maybe there is other documentation for ssh.
> (OpenSSH)?

One more followup.  After reviewing the documentation, and trying some
experiments, the only modification needed to /etc/ssh/ssh_config is:
   ServerAliveInterval 30
TCPKeepAlive is deprecated, and seems not to be necessary.
ServerAliveCountMax 3 is the default value.

   carl
--
   carl lowenstein         marine physical lab     u.c. san diego
                                                [EMAIL PROTECTED]


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to