Bug#961007: Some directives are ignored under sshd_config.d
Package: openssh-server
Version: 1:8.2p1-4
Severity: normal
Hi, the following configuration is ignored if I put it in
/etc/ssh/sshd_config.d/local.conf
...yet it works fine if I put it at the end of the file
/etc/ssh/sshd_config:
Match Group *,!sudo,!root
ChrootDirectory /home
ForceCommand internal-sftp
Match all
I.e. for some reason, some directives in sshd_config.d are ineffective.
To reproduce, use the example above, and just run:
ssh administrator@localhost
It's supposed to reply with:
"""
administrator@localhost's password:
This service allows sftp connections only.
Connection to localhost closed.
"""
Yet it only works at the end of /etc/ssh/sshd_config.
Reply to: