Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Remote ssh server stalls

3 views
Skip to first unread message

Joaco

unread,
Jul 6, 2005, 11:09:51 PM7/6/05
to
I connect via a login session between two of my internet
servers. Whether I use ssh or telnet, if I stop hitting the
kbd, on the logged session, for more than several minutes,
the remote ssh server goes to sleep and the kbd is dead.

I assume this is a configuration problem, but where is this
timeout set or how can this behaviour be stopped?

thanks in advance
TonyB

--
__ __ _ I N C. http://www.sysdev.org
/ __|\\// __|| \ __ __ / to...@sysdev.org
\__ \ \/\__ \||)|/ O_)\/ / \/ System Tools / Utilities
|___/ || ___/|_ /\___|\_/ WIntel / Linux Device Drivers

Keith Keller

unread,
Jul 6, 2005, 11:34:13 PM7/6/05
to
On 2005-07-07, Joaco <to...@sysdev.org> wrote:
> I connect via a login session between two of my internet
> servers. Whether I use ssh or telnet, if I stop hitting the
> kbd, on the logged session, for more than several minutes,
> the remote ssh server goes to sleep and the kbd is dead.
>
> I assume this is a configuration problem, but where is this
> timeout set or how can this behaviour be stopped?

You can look at the TCPKeepAlive option for sshd_config, but
it's set by default.

By chance is the server on the other side of a cheap router like
D-Link or Netgear? I have a Netgear MR314, and sshd sessions would
die as you describe above after two or three minutes of idle time.
TCPKeepAlive in my sshd_config didn't solve this problem last I
tried.

--keith

--
kkeller...@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom
see X- headers for PGP signature information

Joaco

unread,
Jul 7, 2005, 12:33:29 AM7/7/05
to
On Wed, 6 Jul 2005 20:34:13 -0700
Keith Keller <kkeller...@wombat.san-francisco.ca.us> wrote:

> On 2005-07-07, Joaco <to...@sysdev.org> wrote:

> > I assume this is a configuration problem, but where is this
> > timeout set or how can this behaviour be stopped?
>
> You can look at the TCPKeepAlive option for sshd_config, but
> it's set by default.

It has: KeepAlive yes
but no: TCPKeepAlive option

>
> By chance is the server on the other side of a cheap router like
> D-Link or Netgear?

No Keith, the server is the router. Directly connected to my DSL
WireSpeed modem and running an upgraded Slackware 9.1

Tony

The Eighth Doctor

unread,
Jul 7, 2005, 12:51:56 AM7/7/05
to
In article <20050706203329...@sysdev.org>, to...@sysdev.org
says...
Hello from the Eighth Doctor
Tony I must be missing something. Your server is posing as the router, he's directly
connected to the I'net via the standard DSL modem. There isn't any of the cheap
routers involved, or even a moderately priced one, like my LinkSys. I suggest you
complain to your ISP, surely there's an intelligent invidual there who understands
Linux as well as we do. And also double check your settings.
--
Gregg drwho8 atsign att dot net

Joaco

unread,
Jul 7, 2005, 2:07:17 AM7/7/05
to
On Thu, 07 Jul 2005 04:51:56 GMT
drwho8_...@att.net (The Eighth Doctor) wrote:

> In article <20050706203329...@sysdev.org>,
> to...@sysdev.org says...
> >
> >On Wed, 6 Jul 2005 20:34:13 -0700
> >Keith Keller <kkeller...@wombat.san-francisco.ca.us> wrote:
> >
> >> On 2005-07-07, Joaco <to...@sysdev.org> wrote:
> >
> >> > I assume this is a configuration problem, but where is this
> >> > timeout set or how can this behaviour be stopped?
> >>
> >> You can look at the TCPKeepAlive option for sshd_config, but
> >> it's set by default.
> >
> >It has: KeepAlive yes
> >but no: TCPKeepAlive option
> >
> >>
> >> By chance is the server on the other side of a cheap router like
> >> D-Link or Netgear?
> >
> >No Keith, the server is the router. Directly connected to my DSL
> >WireSpeed modem and running an upgraded Slackware 9.1
> >

> Hello from the Eighth Doctor
> Tony I must be missing something. Your server is posing as the
> router, he's directly connected to the I'net via the standard DSL
> modem. There isn't any of the cheap routers involved, or even a
> moderately priced one, like my LinkSys. I suggest you complain to
> your ISP, surely there's an intelligent invidual there who
> understands Linux as well as we do. And also double check your
> settings.--
> Gregg drwho8 atsign att dot net

You have it right. There is one other suspect, I connect with my
client host via a T-Mobile internet connection. However, other
connections with T-Mobile, like to my yahoo mail, irc, xchat,
ftp do not hang after idle times of 5+minutes.

use...@isbd.co.uk

unread,
Jul 7, 2005, 3:52:59 AM7/7/05
to
Keith Keller <kkeller...@wombat.san-francisco.ca.us> wrote:
> On 2005-07-07, Joaco <to...@sysdev.org> wrote:
> > I connect via a login session between two of my internet
> > servers. Whether I use ssh or telnet, if I stop hitting the
> > kbd, on the logged session, for more than several minutes,
> > the remote ssh server goes to sleep and the kbd is dead.
> >
> > I assume this is a configuration problem, but where is this
> > timeout set or how can this behaviour be stopped?
>
> You can look at the TCPKeepAlive option for sshd_config, but
> it's set by default.
>
TCPKeepAlive doesn't affect timeout, all it does is to check if
the session is still connected and, if it's NOT connected it issues an
error message and exits from ssh. See 'man ssh_config'.


> By chance is the server on the other side of a cheap router like
> D-Link or Netgear? I have a Netgear MR314, and sshd sessions would
> die as you describe above after two or three minutes of idle time.
> TCPKeepAlive in my sshd_config didn't solve this problem last I
> tried.
>

In my case it's the firewalls between work and outside that detect no
traffic and disconnect the session. What I have is a trivial program that
I start in the background on the server end of the session when I connect
that simply sends a NUL character across the link every few minutes.

--
Chris Green

Douglas Mayne

unread,
Jul 7, 2005, 12:17:07 PM7/7/05
to
On Wed, 06 Jul 2005 19:09:51 -0800, Joaco wrote:

> I connect via a login session between two of my internet
> servers. Whether I use ssh or telnet, if I stop hitting the
> kbd, on the logged session, for more than several minutes,
> the remote ssh server goes to sleep and the kbd is dead.
>
> I assume this is a configuration problem, but where is this
> timeout set or how can this behaviour be stopped?
>
> thanks in advance
> TonyB
>

I had this problem, too. I fixed it by setting this value in sshd_config:
ClientAliveInterval 90

man sshd_config

My problem is caused by quick timeouts of established connections at
the DSL Modem (an Actiontec 1524, in my case.) The modem's built in
firewall has limited functionality. I am tempted to bypass it totally
using its "DMZ forwarding" feature to see if another device would work
better. Short of that, the "keep alive probes" (above) work for ssh.
The equivalent setting may exist for other protocol daemons, but maybe not
(Lotus Domino, for example).

0 new messages