From owner-freebsd-questions@FreeBSD.ORG Wed May 13 05:15:50 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 301AD106566B for ; Wed, 13 May 2009 05:15:50 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail4.sea5.speakeasy.net (mail4.sea5.speakeasy.net [69.17.117.6]) by mx1.freebsd.org (Postfix) with ESMTP id 0D5918FC13 for ; Wed, 13 May 2009 05:15:49 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 16361 invoked from network); 13 May 2009 05:15:49 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail4.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 13 May 2009 05:15:49 -0000 Message-ID: <4A0A5784.3030807@telenix.org> Date: Wed, 13 May 2009 01:15:48 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.19 (X11/20090121) MIME-Version: 1.0 To: Steve Kargl References: <20090513050333.GA4509@troutmask.apl.washington.edu> In-Reply-To: <20090513050333.GA4509@troutmask.apl.washington.edu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org 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 05:15:50 -0000 Steve Kargl wrote: > 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. > > I'm trying to running the GCC testsuite, which is not an > interactive job. Once it starts, it writes to stdout when > an error occurs or the testsuite moves to a new major > test category. The last few lines of output are > > Running target unix > Using /usr/X11R6/share/dejagnu/baseboards/unix.exp as board description file for target. > Using /usr/X11R6/share/dejagnu/config/unix.exp as generic interface file for target. > Using /usr/home/sgk/gcc/gcc4x/gcc/testsuite/config/default.exp as tool-and-target-specific interface file. > Running /usr/home/sgk/gcc/gcc4x/gcc/testsuite/gfortran.dg/debug/debug.exp ... > Running /usr/home/sgk/gcc/gcc4x/gcc/testsuite/gfortran.dg/dg.exp ... > > Read from remote host troutmask.apl.washington.edu: Connection reset by peer > Connection to troutmask.apl.washington.edu closed. > > The only way I'v efound to complete a run of the GCC testsuite > is to sit at the terminal and hit enter every so often. Also > note, nohup and backgrounding the job does not inhibit sshd > dropping the connection and losing all testsuite results. > Just saw this answer recently, I forget where, but you set the TCPKeepAlive on, I think that's in /etc/ssh/sshd_config. I liked that one, because in retrospect it's obvious (not so obvious when you need it, but it does make sense now).