Subject: Re: ssh connections dropping...?
To: Peter Seebach <seebs@plethora.net>
From: David Hopper <dhop@nwlink.com>
List: current-users
Date: 10/25/2004 12:35:34
On Oct 25, 2004, at 12:20 PM, Peter Seebach wrote:

> In message <20041025191757.GA1367@antioche.eu.org>, Manuel Bouyer 
> writes:
>> On Mon, Oct 25, 2004 at 01:30:29PM -0500, Peter Seebach wrote:
>>> In message <20041025181938.GB705@antioche.eu.org>, Manuel Bouyer 
>>> writes:
>>>> Do you have keepalive turned on, and at which rate ?
>>>> This could be a difference in setup on the client side.
>>>
>>> net.inet.tcp.keepidle = 14400
>>> net.inet.tcp.keepintvl = 150
>>> net.inet.tcp.keepcnt = 8
>>>
>>> Maybe I should change these?
>>
>> Maybe decrease keepintvl (and increase keepcnt).
>> But first, check KeepAlive in ssh_config and sshd_config
>
> sshd_config didn't have it set - but the sshd side is working fine with
> my friend's laptop.
>
> Interestingly, the default is "yes".  And it's not turned off.  So it
> should be keeping the connection alive, and noticing problems.  But it
> doesn't; it just hangs.

My comments are perhaps not useful, but I know OS X does some 
interesting things with persistent TCP connections.  My settings mirror 
yours on my NetBSD systems at home.  On my Powerbook I can put it to 
sleep, awaken it 20 minutes later and as long as my net interface 
hasn't changed, I still have an active ssh connection.

> -s

--dhop