Mailing List Archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] NEC Aterm DR302 and SSH timeouts

On Mon, May 03, 2004 at 02:56:43PM +0900, Ian Barwick wrote:
> I'm using such a connection right now, with a piece of kit between me
> and the Internet labelled "NEC Aterm DR302", which seems to be a
> combined DSL modem (at least I presume it's DSL) and router on a Nihon
> Telecom connection. Everything works fine except that idle SSH
> sessions get timeouts after a while, which is turning intercontinental
> server administration into a bit of a drag.

Some SSH clients have the ability to insert an SSH NOOP
periodically on an idle connection.  (PuTTY for example.  :-)
There are patches that allow you to add it to OpenSSH.

There may be an easier alternative.  Are you running ssh with
TCP "KeepAlive" messages enabled?  A TCP keepalive may be
enough for your device to sense activity on the link.
Depending on how long the timeout is, you need to increase the
KeepAlive frequency to make sure there is some packet activity
on the link.  By default Linux sets tcp_keepalive_time to 7200
seconds.  Reducing it to 1800 or 900 might be enough to keep
your connection alive without adding significant network
  echo 1800 >/proc/sys/net/ipv4/tcp_keepalive_time
Jim Tittsler                                         GPG: 0x01159DB6
Kanto Computer Calendar
Python Starship

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links