From nobody Tue Dec 07 11:20:15 2021 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 F3F3D18CAACA for ; Tue, 7 Dec 2021 11:20:15 +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 4J7dBR43T6z4jcM for ; Tue, 7 Dec 2021 11:20:15 +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 6B64A1ED80 for ; Tue, 7 Dec 2021 11:20:15 +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 1B7BKFtg065534 for ; Tue, 7 Dec 2021 11:20:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B7BKFqU065533 for bugs@FreeBSD.org; Tue, 7 Dec 2021 11:20:15 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 260265] sshd -T does not work with Match, shows empty result [regression] Date: Tue, 07 Dec 2021 11:20:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: 000.fbsd@quip.cz X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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=1638876015; 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; bh=vj1TvgM7b1FwAdyxLH7O6rae89FmqxiLCFDkAu31nbQ=; b=o895lQ0220JvN7mNxBGyyuZtkMMUWlRzc9nfMCPxQpk57coflfPUkEQdGNXh/zXoRhWV0b jSWkrP6ZrL9HZ6lH81VsNIPlUUQDQoJNJsSJ+P2pXrdXOcmU92Yf+DfutDZ1h49fo1yAnu SM095OyM57wnzNVg5M1JU5ybiGDyRb3vR2mwJzi2Ce+A2idY8gUBFU1P0QUR4hk40mOS5Z 57IcIm4Rf3D9sDjSGUDwbeLvDmAMXJJRICr3rsdsgpUzX9OzkZbsjInwJ2I2xHvSKaHtl8 vzXICQn1Iiv/Ap0RBE1dQC346hGY1ftcqslNWT7uMgfO4l3/cj8reRghd3Oxyw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638876015; a=rsa-sha256; cv=none; b=MzXzpPuMTX/v/UmsGu4P1TMbHtQZIi35ZCgc+8oIUPQ5Mxojt3e/IY9t7+P6IhNpVzYOE+ aPX1MX5Ixmbmj+u4MuZfNylvFcVijVP18z4TTeQyEo4BWqilzxysoqnnv0e/uavMabCPYQ tSgO5FHLl/T5SsRXdSDs8lhjQbkaqexwpDLE20Ot3J8zIHOgayV1YFET7sLZP6OT76gjPm 4nmmPBMnPcLUlxEiu7BL2ZFAxLzOcti/fBqtQxEZ1BRVD++3n8Ln/l8aqe0JWnndP5lOmB mjVocqe2Z/tRAvCUWDShCZ2F3oVtczTzT/YeFlzxUtG1y9+BkOk1CWBk6wswmg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260265 Bug ID: 260265 Summary: sshd -T does not work with Match, shows empty result [regression] Product: Base System Version: 12.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: 000.fbsd@quip.cz I don't know if this should be considered as bug or "just changed behavior"= but it is annoying. sshd -T works in FreeBSD 11.4 (OpenSSH_7.5) and prints details about current configuration but it does not work with the same configuration file in Free= BSD 12.2 (OpenSSH_7.9). # sshd -T 'Match Group' in configuration but 'user' not in connection test specificat= ion. Once I have any "Match" in sshd_config then sshd -T does not work. It needs additional -C user=3Dfakeuser to print configuration. (I just needed to view supported ciphers) You can try it with default sshd_config and add something like this: Match group sftponly ChrootDirectory %h ...or just ucomment the section "Match User anoncvs". I think sshd -T should still work without -C as it was in older versions and print configuration for any non-matched criteria. --=20 You are receiving this mail because: You are the assignee for the bug.=