Bug 2858 - sshd -T requires -C when "Match" is used in sshd_config
Summary: sshd -T requires -C when "Match" is used in sshd_config
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 7.7p1
Hardware: Other OpenBSD
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: V_8_1
  Show dependency treegraph
 
Reported: 2018-04-15 07:04 AEST by Simon Deziel
Modified: 2021-04-23 14:54 AEST (History)
2 users (show)

See Also:


Attachments
Fix sshd -T w/out -C (6.43 KB, patch)
2018-05-11 19:41 AEST, Darren Tucker
no flags Details | Diff
Fix sshd -T w/out -C (5.62 KB, patch)
2019-04-18 19:42 AEST, Darren Tucker
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Deziel 2018-04-15 07:04:53 AEST
On a freshly installed OpenBSD 6.3, I copied sshd_config from OpenBSD 6.2 and now "sshd -T" now complains like this:

root@fw63:~# sshd -T                        
'Match User' in configuration but 'user' not in connection test specification.

Removing the match directive make it work. If I keep the match, adding "-C 'user=foo,addr=::1'" is required. According to the man page, -C is supposed to be optional and it was indeed the case on older releases.
Comment 1 Darren Tucker 2018-05-11 13:11:34 AEST
Hm.  sshd -T should do something reasonable in that case.
Comment 2 Darren Tucker 2018-05-11 19:41:25 AEST
Created attachment 3150 [details]
Fix sshd -T w/out -C
Comment 3 Damien Miller 2018-08-10 11:38:01 AEST
Retarget remaining bugs planned for 7.8 release to 7.9
Comment 4 Damien Miller 2018-08-10 11:38:23 AEST
Retarget remaining bugs planned for 7.8 release to 7.9
Comment 5 Damien Miller 2018-10-19 17:13:39 AEDT
Retarget unfinished bugs to OpenSSH 8.0
Comment 6 Damien Miller 2018-10-19 17:14:45 AEDT
Retarget unfinished bugs to OpenSSH 8.0
Comment 7 Damien Miller 2018-10-19 17:15:46 AEDT
Retarget unfinished bugs to OpenSSH 8.0
Comment 8 Damien Miller 2019-04-03 10:10:29 AEDT
Retarget outstanding bugs at next release
Comment 9 Darren Tucker 2019-04-18 19:42:28 AEST
Created attachment 3265 [details]
Fix sshd -T w/out -C
Comment 10 Darren Tucker 2019-04-19 05:00:51 AEST
This has been fixed and will be in the 8.1 release.  Thanks for the report.
Comment 11 Damien Miller 2021-04-23 14:54:58 AEST
closing resolved bugs as of 8.6p1 release