It does not. That directory and the corresponding Include statement were added by the OP.
Weird that it is reproduced on RHEL 8.6, It didn’t seem to be an issue on Rocky 8.6.
The Include
directive is definitely described in the sshd_config
man page, which is why I started using it on Rocky8. However, that configuration is still ork in progress so although It is present in the config file, I didn’t have any configuration files in the folder.
In CentOS 7 where that feature is explicitly not supported, sshd -t
does return an error when the Include
directive is used in sshd_config
.
Unfortunately, I do not have a system available to install CentOS stream nor do we have a licence for RHEL (yet, I hear we are suppose to get one soon though) to test and submit a report for this upstream.
Thanks for all the help and information looking into this.
I have actually now tested adding configuration in the folder with non empty files and it does indeed work in Rocky 8.7. RHEL8 may not create or use the folder by default, but the binary they distribute does support the feature.
It does make sense though in RHEL9 to use as the first line of the sshd_config
file and fully replace it with files in that directory. I was not planning on using it that way originally, just as adding match
directives, since I was placing it at the end of the original file.
Hello,
Thank you for this thread, you help me to diagnose this fantastic issue ( I spent nearly 1 hour by trying to retrieve my SSH server working thought IPMI )
However, does someone add this bug to the bug tracker ?
BTW, should this also be reported to Openssh project ?
Best regards