Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Mar 2006 21:17:36 -0700
From:      Brian Ross <brian@visionn.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: connection reset by peer from one location but not another
Message-ID:  <A1F6E276-9ACC-4791-B9BD-C37F2651F36F@visionn.com>
In-Reply-To: <441164A4.6080809@dial.pipex.com>
References:  <311AACD2-C64F-40BF-8CDA-A5624AFA79B0@visionn.com> <20060310044208.GA19760@alexis.mi.celestial.com> <441164A4.6080809@dial.pipex.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mar 10, 2006, at 4:36 AM, Alex Zbyslaw wrote:

> Bill Campbell wrote:
>
>> On Thu, Mar 09, 2006, Brian Ross wrote:
>>
>>> I'm getting a "connection reset by peer" disconnect after about  
>>> 10  minutes (or less) when I SSH to my 5.4-STABLE server from my  
>>> home  connection (cable DHCP), but I can stay connected all day  
>>> long from  work (DSL DHCP). I couldn't find any mention of  
>>> connection reset by  peer in the list archive, so I was wondering  
>>> what I could monitor  (running SSH in verbose mode doesn't tell  
>>> me much) to find where I'm  actually getting booted off from.  
>>> Since it only happens with one  connection, I'm thinking it isn't  
>>> my actual server that's causing the  reset. But I do not know  
>>> what log file to monitor in order to  investigate further.
>>>
>>
>> My guess is that your connection to the remote machine is via a
>> NAT (Masquerading) connection, and there's no activity on the
>> connection.  Running something like top when you're not actively
>> using the connection will probably prevent the timeout.
>>
>>
> If that's the case then running "ssh -o ServerAliveInterval 60"  
> would do that.  If it works, you can stick the option in your .ssh  
> config file.
>
> --Alex

Just what I was looking for!

Thanks,
Brian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A1F6E276-9ACC-4791-B9BD-C37F2651F36F>