From nobody Wed Oct 05 20:41:40 2022 X-Original-To: bugs@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 4MjRLs1VXrz4f2g8 for ; Wed, 5 Oct 2022 20:41:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MjRLr66M4z49xH for ; Wed, 5 Oct 2022 20:41:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MjRLr586Sz124L for ; Wed, 5 Oct 2022 20:41:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 295KfeTe057909 for ; Wed, 5 Oct 2022 20:41:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 295Kfe2J057908 for bugs@FreeBSD.org; Wed, 5 Oct 2022 20:41:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 264600] openssh: sshd spamming logs: error: Fssh_kex_exchange_identification: Connection closed by remote host Date: Wed, 05 Oct 2022 20:41:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? mfc-stable13? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665002500; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CMvSK6SX0Q6mDKCNR7Ht4k1dDvmEV1czD47Jb240JCA=; b=ghm1ZUuKcMPwpdPTxensDQt4av1MtiggxTaIu48Zxs0jzJZ+31LvE4C3h3Ivw5v0XU6Vvf AxXJmw2T/CzUAZmQ/6hnRyWF4pkQ99Xes9flsHMR2MHDbGdHiyos+NLpNLjXvZzgF/2Rnz ZNnfEE63/p4XS+y+11uaQFx7XRZEJpbxDl6PVP4h03HH+JXSdokHtZuRHWaBZrsASdBRSO EAjyAWebLV+0n88MA7sxgB8cBW2u1P2n7eCcsHJhxorg6g/4vfKro0aZJAFXYY/FEhfzt0 +uzD49Ci85ORFbSZDgjnY3q6f+5EdVAKVD1hJdGhDpJM17ER2IPwvZYukML73w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665002500; a=rsa-sha256; cv=none; b=YC2QNOEMAjeMqeM3ZUX+gIQWD8NnMA99+0zegJ+7v31Gpfu9+v+NSiDVOu3ahkTJlbJqMq V0X/GdoEFtFzgYXp3aK4xiZhPrtuKEXhOcm6Eh4rUjB/CGnNvmJdsxWZQW0vO2p13AHEkF ymVI+TtUIdIHaUMz5HKU1fy/FO0Jar4Ekznwytt3jBi9vhgh0oqOSs5NfXTgq68LHRVLqi IadtiZY1rNBG2vxX18n0aR0q6KS8np6BfXSuUYE7Taah7AsjgVD8qMnmYY+yJb2PFGS4K3 v3ZKCCBmwQRP9OvjJVVS2HKMIgTDOwLX9+SmK62NabRlZWiG4aao3XPmGpiIlA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264600 --- Comment #15 from Ed Maste --- (In reply to Jose Luis Duran from comment #0) > After upgrading a public-facing SSH server to OpenSSH 8.8 What version were you running before? This error comes from: len =3D atomicio(read, ssh_packet_get_connection_in= (ssh), &c, 1); if (len !=3D 1 && errno =3D=3D EPIPE) { error_f("Connection closed by remote host"); r =3D SSH_ERR_CONN_CLOSED; goto out; This commit in OpenSSH-portable is probably relevant: commit 0a843d9a0e805f14653a555f5c7a8ba99d62c12d Author: djm@openbsd.org Date: Thu Dec 27 03:25:24 2018 +0000 upstream: move client/server SSH-* banners to buffers under ssh->kex and factor out the banner exchange. This eliminates some common code from the client and server. Also be more strict about handling \r characters - these should only be accepted immediately before \n (pointed out by Jann Horn). Inspired by a patch from Markus Schmidt. (lots of) feedback and ok markus@ OpenBSD-Commit-ID: 1cc7885487a6754f63641d7d3279b0941890275b which came between 7.9 and 8.0 --=20 You are receiving this mail because: You are the assignee for the bug.=