Re: ssh connection closed
On 2004-04-16 01:26:52 -0700, Karsten M. Self wrote:
> Could be you've got an intermediate router that's dropping you,
> possibly after ten minutes' idle time.
If this is possible, then it could probably be the case, since the
problems appeared after moving to a different ADSL connection (using
a different ADSL router) -- but last time such a problem appeared
with this router, this was just a coincidence.
> I'd added the following line to /etc/init.d/networking:
>
> networking: # set keepalives to 5 minutes rather than 3 hours
> networking: echo 300 > /proc/sys/net/ipv4/tcp_keepalive_time
>
> ...to counter a similar problem.
But the problem with keepalive is that the ssh connection is dropped
after an ADSL reconnection (every 24 hours). That's why I disabled it
several months ago (though it didn't always work).
> If you're dealing with a *hard* session timeout of 10 minutes, I'd
> advise you to learn to love screen.
Yes, I already use it, but these closed connections are still annoying.
--
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% validated (X)HTML - Acorn / RISC OS / ARM, free software, YP17,
Championnat International des Jeux Mathématiques et Logiques, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Reply to: