From owner-freebsd-stable@freebsd.org Wed Sep 23 14:39:08 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AF498A064CD for ; Wed, 23 Sep 2015 14:39:08 +0000 (UTC) (envelope-from snow@teardrop.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 9B27E11D9 for ; Wed, 23 Sep 2015 14:39:08 +0000 (UTC) (envelope-from snow@teardrop.org) Received: by mailman.ysv.freebsd.org (Postfix) id 9A581A064CC; Wed, 23 Sep 2015 14:39:08 +0000 (UTC) Delivered-To: stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 99EEAA064CB for ; Wed, 23 Sep 2015 14:39:08 +0000 (UTC) (envelope-from snow@teardrop.org) Received: from apollo.teardrop.org (apollo.teardrop.org [173.228.105.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 88B3B11D8 for ; Wed, 23 Sep 2015 14:39:08 +0000 (UTC) (envelope-from snow@teardrop.org) Received: by apollo.teardrop.org (Postfix, from userid 30000) id BD8E66F2D2; Wed, 23 Sep 2015 14:31:33 +0000 (UTC) Date: Wed, 23 Sep 2015 14:31:33 +0000 From: James Snow To: FreeBSD Stable ML Subject: Re: when the sshd hits the fan Message-ID: <20150923143133.GG858@teardrop.org> References: <56026686.8030308@norma.perm.ru> <8CC54339-0028-4CE4-9AAD-2248CD4E2FC9@lafn.org> <20150923104454.GG36682@home.opsec.eu> <20150923123730.GA15788@xtaz.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150923123730.GA15788@xtaz.uk> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Sep 2015 14:39:08 -0000 On Wed, Sep 23, 2015 at 01:37:30PM +0100, Matt Smith wrote: > If this type of thing is being done on the base system sshd it would > also be useful to look at the port version of ssh as well? I use the > port and it has always annoyed me that I get constant "connection > refused" whilst I'm waiting for the server to fully boot up! Tangential, but in case it's useful to anyone else: until ssh -o ConnectTimeout=2 $host; do sleep 1; done I do this all the time for hosts where I'm waiting on boot. The timeouts and connection refused messages serve as counters so I can do other things while waiting and have an objective measure of whether or not I've waited too long for a host to come up. Also handy is that it will automatically reconnect on anything other than a deliberate log out. -Snow