From owner-freebsd-questions@FreeBSD.ORG Wed May 13 11:13:55 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 785BA1065688 for ; Wed, 13 May 2009 11:13:55 +0000 (UTC) (envelope-from uwe@laverenz.de) Received: from mo-p00-ob.rzone.de (mo-p00-ob.rzone.de [81.169.146.162]) by mx1.freebsd.org (Postfix) with ESMTP id E8A058FC18 for ; Wed, 13 May 2009 11:13:54 +0000 (UTC) (envelope-from uwe@laverenz.de) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1242213233; l=692; s=domk; d=laverenz.de; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References: Subject:To:MIME-Version:From:Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=ivssMiJCt8n1vJAFC6GTl2CigZI=; b=QT3vr0vB2Q4y3b2/rKYgnDE90Tb0E+2nin8Ls+pnm+Q+kTgNMqfCMFjfpH4hAcOJ2ds eqQGBHnEUMSSbEQDOo/LZwRxELkatPLkyXqBSVFTk9nI0WNzxpy0m+rCfNvOr8bihixC+ jmkYBVSQzDavkqNsNFUQkjIRHbfRP8IlxrU= X-RZG-AUTH: :LWgJfE6Id/4Sm/WkdV0gEbKL+/p/UjmosA/b4BPf1Ida/LA6f2WjvdsA X-RZG-CLASS-ID: mo00 Received: from athena.laverenz.de (77-22-194-90-dynip.superkabel.de [77.22.194.90]) by post.strato.de (mrclete mo19) (RZmta 18.34) with ESMTP id C0015al4DArWoN for ; Wed, 13 May 2009 13:02:18 +0200 (MEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by athena.laverenz.de (Postfix) with ESMTP id 361221276D2 for ; Wed, 13 May 2009 14:01:39 +0200 (CEST) Received: from athena.laverenz.de ([127.0.0.1]) by localhost (athena [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29824-04 for ; Wed, 13 May 2009 14:01:38 +0200 (CEST) Received: from [192.168.23.142] (unknown [192.168.23.142]) by athena.laverenz.de (Postfix) with ESMTP id D0A311276D1 for ; Wed, 13 May 2009 14:01:38 +0200 (CEST) Message-ID: <4A0AA8AB.3050608@laverenz.de> Date: Wed, 13 May 2009 13:02:03 +0200 From: Uwe Laverenz Organization: private site User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20090513050333.GA4509@troutmask.apl.washington.edu> In-Reply-To: <20090513050333.GA4509@troutmask.apl.washington.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at laverenz.de Subject: Re: Disabling ssh timeouts? 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: Wed, 13 May 2009 11:13:56 -0000 Steve Kargl schrieb: > Is there anyway to disable sshd from timing out a connection? > I've tried setting ClientAliveCountMax and ClientAliveInterval > and TCPKeepAlive in sshd.conf, but no combination that I've > tried has worked. Possibly it's not ssh that closes the connection. Are there any routers between your machine and the remote one? If this is the case it could be one of the routers that has a low timeout for recognizing a connection as "alive". This happens especially if NAT is used, because the router has to keep a table of ip:port pairs for each connection. This should happen only if there is no traffic on the connection within this timeout limit. Uwe