SSH keeps hanging up...

Chris Carey chris.carey at gmail.com
Thu May 22 10:54:25 MDT 2008


On Wed, May 21, 2008 at 11:07 PM, Kimball Larsen
<kimball at kimballlarsen.com> wrote:
> I occasionally have to remotely admin a server at the office from home.
>
> I have it set up to only allow a few hosts access via ssh, and my home
> static IP is on the permitted list. (using hosts.allow, hosts.deny)
>
> I can connect to and log into the server just fine.  The session works great
> as long as I am actively doing something in the shell.  However, if I let it
> sit idle for (it seems) < 1 minute, the session seems to just lock up.

That seems like a pretty quick timeout to lock up.  Maybe your
firewall is shutting down the connection prematurely.

I wonder if tinkering with the values in /proc on your firewall could help:

/proc/sys/net/ipv4/tcp_keepalive_*



More information about the PLUG mailing list