From owner-freebsd-questions@FreeBSD.ORG Wed May 13 14:54:41 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 42D69106566B for ; Wed, 13 May 2009 14:54:41 +0000 (UTC) (envelope-from jjuanino@gmail.com) Received: from mail-fx0-f216.google.com (mail-fx0-f216.google.com [209.85.220.216]) by mx1.freebsd.org (Postfix) with ESMTP id BD2AE8FC08 for ; Wed, 13 May 2009 14:54:39 +0000 (UTC) (envelope-from jjuanino@gmail.com) Received: by fxm12 with SMTP id 12so699930fxm.43 for ; Wed, 13 May 2009 07:54:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:x-operating-system:user-agent; bh=DNfOLzHYJdwlXCIF2aBwz+czcTxTlUr2pgWOKENue5U=; b=Aa/wTccPSsgLBErTxkGm9a8FE6ZmFjWaHZWfgJZZpPOZyvNnjtdICnaj4rQw2Useg/ LPUyyGe5O28sxw57r0D5AS3KhdugwfWyGt+oTD6rytni4e7TjZBPxnA2cv+gHE0hHo5X nQuYHzm6sNiF+MTnqws1Fna4ytiYIsr/kUxOU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-operating-system :user-agent; b=RhFdOTTLutmVci+ga1EkMfSg3vsIJDOGA87lWF9Ln3nLU2Qzqo4qJb5QqHdgpVC2hn qbf2msj1PORMQLJbynbuw2PhV8r0lnZ+FxRQ8J4DccJxR+2rvlKpO5h82DYoNYuzm/ep mwCfQfwjFiT+wLvSj4QECYbRKA6oCoA6fmCu8= Received: by 10.204.31.196 with SMTP id z4mr997451bkc.92.1242226479119; Wed, 13 May 2009 07:54:39 -0700 (PDT) Received: from banach (22.pool85-60-101.dynamic.orange.es [85.60.101.22]) by mx.google.com with ESMTPS id g28sm88706fkg.25.2009.05.13.07.54.37 (version=SSLv3 cipher=RC4-MD5); Wed, 13 May 2009 07:54:38 -0700 (PDT) Date: Wed, 13 May 2009 16:54:33 +0200 From: Jose Garcia Juanino To: Steve Kargl Message-ID: <20090513145432.GA10978@banach> References: <20090513050333.GA4509@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline In-Reply-To: <20090513050333.GA4509@troutmask.apl.washington.edu> X-Operating-System: FreeBSD 7.2-RELEASE User-Agent: Mutt/1.5.19 (2009-01-05) 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 14:54:41 -0000 --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable El mi=E9rcoles 13 de mayo a las 07:03:33 CEST, Steve Kargl escribi=F3: > 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. >=20 > [ ... ] > > Running /usr/home/sgk/gcc/gcc4x/gcc/testsuite/gfortran.dg/dg.exp ... >=20 > Read from remote host troutmask.apl.washington.edu: Connection reset by p= eer > Connection to troutmask.apl.washington.edu closed. >=20 > 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. I have fixed that problems with ServerAliveInterval option. Give it a try: ssh -o "ServerAliveInterval 60" -l (screen is a goog idea, as other people have pointed out, but sometimes it is not posible to install programs on the server) Best regards --h31gzZEtNLTqOjlF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkoK3ygACgkQFOo0zaS9RnIHJACglOI/CXXH9dVwu9kDmmdbclbk zBQAniAbvp5ftqpjVKdJntVuDc6an8fP =Sf8Y -----END PGP SIGNATURE----- --h31gzZEtNLTqOjlF--