Idle SSH session disconnects (update)

Jim Cunning jcunning at cts.com
Sat Aug 31 14:48:11 EST 2002


On Fri, 30 Aug 2002, Frank Cusack wrote:

> On Fri, Aug 30, 2002 at 07:06:07PM -0600, Bob Proulx wrote:
> > Jim Cunning <jcunning at cts.com> [2002-08-30 14:26:47 -0700]:
> > > I will try setting KeepAlive to no.
> >
> > Many people have joked over the years that KEEPALIVE should really be
> > called MAKEDEAD instead because that is the function.
>
> Unless you are passing through a stateful firewall, which must keep
> a session timer.

I tried setting the KeepAlive parameter to no in /etc/sshd_config, then
restarting sshd.  I then opened an SSH session and left it idle.  Almost
exactly two hours later I noticed that it was disconnected with a comment
something like "read failed" and "connection reset by peer" -- I'm no
longer at my work computer, so I'm writing from memory.

So, turning off KEEPALIVE (or MAKEDEAD) seemed to have no effect.

Jim




More information about the openssh-unix-dev mailing list