From nobody Sat Oct 28 11:42:11 2023 X-Original-To: stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SHd1P5GdHz4ylsx for ; Sat, 28 Oct 2023 11:42:17 +0000 (UTC) (envelope-from r.m@rmswch.plus.com) Received: from avasout-ptp-003.plus.net (avasout-ptp-003.plus.net [84.93.230.244]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "avasout.plus.net", Issuer "GeoTrust TLS RSA CA G1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SHd1N3zGCz4XGg for ; Sat, 28 Oct 2023 11:42:16 +0000 (UTC) (envelope-from r.m@rmswch.plus.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=plus.com header.s=042019 header.b=C9V1PLPl; spf=none (mx1.freebsd.org: domain of r.m@rmswch.plus.com has no SPF policy when checking 84.93.230.244) smtp.mailfrom=r.m@rmswch.plus.com; dmarc=none Received: from opendev.home ([80.229.151.92]) by smtp with SMTP id whhjqSbdTFuWvwhhkqMZYw; Sat, 28 Oct 2023 12:42:13 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plus.com; s=042019; t=1698493333; bh=S5C8HmS5r3H+u0nkcwvJStpQ0HCIpLZgsPuMxEfYUbE=; h=Date:From:To:Subject:In-Reply-To:References; b=C9V1PLPlAYKVoYVBd3Z2YEd12UcVGGzhPxBrgn1Lcg0dNjdgGRi+XyZIO1F5/Kxk2 2mgAJLHtQVvxS8SfEuZ3HfdCAc6BXOzHsLrkg+WgXZz+/hagioZyrR4nRYziMREwK/ vikjwtFWG7AbBwaDBREXXri8AmZPIbiyXnW+P39Lsu3pf1hKYASJYHM06uuGq1hGTp oQHGtrZ5ee/AzOYFZzvLg1z/PAZXMSwwLsYmx1xD+V0xI8MygiobcRAxSXx6srBNJ2 zeCH4oxkPJrwbG/97mesTXGMukmSyfmoCZzlCu3TMqmT3Cr9psvunQq3T3nuwI3YLt GA6FdW51wqWOA== X-Clacks-Overhead: "GNU Terry Pratchett" X-CM-Score: 0.00 X-CNFS-Analysis: v=2.4 cv=WcAf1mtX c=1 sm=1 tr=0 ts=653cf395 a=6xlXYeu7y0jVCiZ/8t1ozg==:117 a=6xlXYeu7y0jVCiZ/8t1ozg==:17 a=kj9zAlcOel0A:10 a=iJzMXNBmAAAA:8 a=WcxHNsqOAAAA:8 a=gu6fZOg2AAAA:8 a=JIf7469JWYZH4qYe8m8A:9 a=CjuIK1q_8ugA:10 a=rHaSJRYq46MA:10 a=-FEs8UIgK8oA:10 a=iYdFQb2vDmRvJMxvpxpI:22 a=WXeDAsiyfwSRC1lbKA7R:22 a=2RSlZUUhi9gRBrsHwhhZ:22 Date: Sat, 28 Oct 2023 11:42:11 +0000 From: Roger Marsh To: stable@freebsd.org Subject: Re: Version of OpenSSH in FreeBSD 14.0 Message-ID: <20231028114211.7e0eceaa@opendev.home> In-Reply-To: <5a16a0e2-34c2-4bcf-bfbe-aec980955fcf@twisted.org.uk> References: <20231028083010.0f880289@opendev.home> <5a16a0e2-34c2-4bcf-bfbe-aec980955fcf@twisted.org.uk> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-unknown-openbsd7.4) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfFSuxThi7YRjW4TF2NnPoR9gAf4W0ffulUIk+fUitYWf2WyMMw24XDFma+r1TeTP7Z3NwDlfX3hoaOnSp9XpPkPJfhJ5xwcErJw92D0lo1qk6DzAX6p1 wMdzhH3Jaof0ODo4yjQkSxL3ZnXQXkzMhMtInbRj7u9rEa6nQgifzvwe4DM1Qx177kF5Y07AO74YcA== X-Spamd-Result: default: False [-3.40 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[plus.com:s=042019]; RWL_MAILSPIKE_GOOD(-0.10)[84.93.230.244:from]; RCVD_IN_DNSWL_LOW(-0.10)[84.93.230.244:from]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; MLMMJ_DEST(0.00)[stable@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[plus.com:+]; DMARC_NA(0.00)[plus.com]; ASN(0.00)[asn:6871, ipnet:84.92.0.0/15, country:GB]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_NA(0.00)[no SPF record] X-Rspamd-Queue-Id: 4SHd1N3zGCz4XGg X-Spamd-Bar: --- On Sat, 28 Oct 2023 10:45:36 +0100 Pete French wrote: > On 28/10/2023 09:30, Roger Marsh wrote: > > Does 14.0 have OpenSSH 9.3 or OpenSSH 9.4? > > > > This thread: > > > > Delay in starting programs on FreeBSD via ssh after upgrade OpenBSD from 7.3 to 7.4 > > > on openssh-unix-dev@mindrot.org > > > This one ? > > https://lists.mindrot.org/pipermail/openssh-unix-dev/2023-October/041033.html > Yes. > Just looking at that thread and not being able to quite work out what > the solution was there (it refers to another thread I cant find). But > it seems to be ObscureKeystrokeTiming, yes ? > Thread you cannot find is: https://marc.info/?l=openbsd-misc&m=169824753806131&w=2 > There are no references to that in the config on FreeBSD 14, so I assume > it stays on, and at the default. Did this turn out to be the cause of > the issue, and did disabling it fix the problem ? > On OpenBSD the default for ObscureKeystrokeTiming is on, value 'yes', and it can be turned off, value 'no'. Intervals can be specified too: quoting OpenBSD 7.4 'man ssh_config' for ObscureKeystrokeTiming "The default is to obscure keystrokes using a 20ms packet interval.". Disabling fixed the problem. > I have to admit I hadn't tried ssh'ing *out* of my test 14 box > until today, but a quick try doesnt show any delays to anything. > However I don't have anything running OpenBSD. > One of the posts in the thread on openbsd-misc has a table on this sort of ssh'ing combination (for OpenBSD only). One of the replies on the openbsd-misc thread pointed out why one of the logins took a long time! (It does not get used during upgrades which is why I did not notice the problem till 'too late'.) > -pete. > > PS: I did see an upgraded ssh cause delays in login a while ago. But > that turned out to be dropping support for old key exchange algorithms. > If the box you are sshing into is somewhat underpowered then it can > take longer to do the key echange, as the newer algorithms are far > slower. In my case the delay was 30 seconds to login. > Delay seems to be about five seconds, measured by mutterring "One thousand and one, ..., ... and five" while waiting. The ssh_config entry for ObscureKeystrokeTiming talks about fake keystroke packets after typing ceases. I had not considered the possibility of key exchange problems. > Apologies for the reference to OpenSSH 9.4. On OpenBSD 7.4 both 'ssh -V' and 'sshd -V' give 'OpenSSH_9.5, LibreSSL 3.8.2'. Looks like the problem will go away after I upgrade to FreeBSD 14.0. Roger