From owner-freebsd-questions@FreeBSD.ORG Sun Mar 11 21:21:59 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3434D16A400 for ; Sun, 11 Mar 2007 21:21:59 +0000 (UTC) (envelope-from fbsd-ml@scrapper.ca) Received: from pd3mo3so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id 1301513C4B9 for ; Sun, 11 Mar 2007 21:21:58 +0000 (UTC) (envelope-from fbsd-ml@scrapper.ca) Received: from pd4mr6so.prod.shaw.ca (pd4mr6so-qfe3.prod.shaw.ca [10.0.141.69]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JER009C19V6LX90@l-daemon> for freebsd-questions@freebsd.org; Sun, 11 Mar 2007 14:21:06 -0600 (MDT) Received: from pn2ml4so.prod.shaw.ca ([10.0.121.148]) by pd4mr6so.prod.shaw.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0JER00LYM9V6RZX0@pd4mr6so.prod.shaw.ca> for freebsd-questions@freebsd.org; Sun, 11 Mar 2007 13:21:06 -0700 (MST) Received: from proven. ([24.85.241.34]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JER00I359V621P1@l-daemon> for freebsd-questions@freebsd.org; Sun, 11 Mar 2007 14:21:06 -0600 (MDT) Received: from proven. (localhost [127.0.0.1]) by proven. (8.13.8/8.13.8) with ESMTP id l2BKL5EC061274 for ; Sun, 11 Mar 2007 13:21:05 -0700 (PDT envelope-from fbsd-ml@scrapper.ca) Received: from localhost (localhost [[UNIX: localhost]]) by proven. (8.13.8/8.13.8/Submit) id l2BKL4G4061273 for freebsd-questions@freebsd.org; Sun, 11 Mar 2007 13:21:04 -0700 (PDT envelope-from fbsd-ml@scrapper.ca) Date: Sun, 11 Mar 2007 13:21:03 -0700 From: Norbert Papke In-reply-to: <035c01c763fd$b7341cf0$259c56d0$@net> To: freebsd-questions@freebsd.org Message-id: <200703111321.04229.fbsd-ml@scrapper.ca> Organization: Archaeological Filing MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline References: <035c01c763fd$b7341cf0$259c56d0$@net> X-Authentication-warning: proven.: npapke set sender to fbsd-ml@scrapper.ca using -f User-Agent: KMail/1.9.5 Subject: Re: OpenSSH Problem with disconnects X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Mar 2007 21:21:59 -0000 On Sunday 11 March 2007 09:52, Alexander Schlichting wrote: > I am having a big problem with the OpenSSH Daemon on my server. Whenever I > am connected to the server and the connection is idle for a few seconds it > gets disconnected. It's almost impossible to work from remote on the server > when the connection is always getting dropped. It is likely related to something in your network path dropping the connection when it is idle. Try the following in your server's /etc/ssh/sshd_config file. ClientAliveInterval 30 ClientAliveCountMax 10 Note that TCP keep-alives usually don't help in this situation because their interval is too large. Cheers. -- Norbert.