On Thu, 2003-09-11 at 12:25, Anatoly Vorobey wrote:
> I wonder if anyone else encountered the following problem. My home 
> machine is on an ADSL connection, with the ADSL modem functioning as a 
> router and doing address translation. When I connect outside with ssh,
> it breaks the connection after very small periods of inactivity (2-3 
> minutes will usually do it) with "Connection reset by peer". I verified
> that this has nothing to do with autotimeout settings of the shell on 
> the other side. In fact, the login shell and whatever else I ran from it
> continues running on the other side. I don't experience connection 
> breakage in other TCP connections originating from my machine (e.g. long
> downloads, telnet).
> 
> Googling for information, I found many cases when people complained of 
> this problem and were told to put ProtocolKeepAlives with the value of 
> 30 or so in their ssh config files. The problem is that 
> ProtocolKeepAlives seems to be a debian-only extension (perhaps put 
> there precisely to combat this problem?).
> 
> So, my question is threefold, I guess: has anyone encountered this 
> problem? can anyone explain why this is happening, in technical terms? 
> is there anything I can do to help it?


i had this issue, but only when connecting to non-gentoo (ie. redhat) machines...  it 
had to do with the keepalive time specified in the kernel, so all i had to do was run 
the following as root:

  # echo 300 > /proc/sys/net/ipv4/tcp_keepalive_time

and to make sure it happens every time i reboot, i added this line to
/etc/sysctl.conf:

  # reduce keepalive time to stay connected to redhat boxes
  net.ipv4.tcp_keepalive_time = 300

i'm not sure why the keepalive time is different for gentoo vs. redhat,
only that this fixt the problem.  hope it helps.

-- 
too long have the workers of the world waited for some moses to lead
them out of bondage. i would not lead you out if i could; for if you
could be led out, you could be led back again. i would have you make up
your minds there is nothing that you cannot do for yourselves.
  - eugene debs founder of the american railway union



--
[EMAIL PROTECTED] mailing list

Reply via email to