Bug#1063488: openssh-server: unable to override sshd_config defined options with sshd_config.d snippets
Vagrant Cascadian <[email protected]>
| Newsgroups | gmane.linux.debian.devel.ssh |
|---|---|
| Message-ID | <87plx6pt9n.fsf__15334.2883031414$1707426216$gmane$org@contorta> |
Package: openssh-server Version: 1:9.2p1-2+deb12u2 Severity: normal X-Debbugs-Cc: Vagrant Cascadian <[email protected]> The default sshd_config sources configuration snippets from /etc/ssh/sshd_config.d/*.conf in the earliest entry in the configuration, but then defines some Debian defaults after this, which makes the Debian defaults hard to override with sshd_config.d/*.conf snippets, such as X11Forwarding. I see two fairly simple general fixes: 1) Specify /etc/ssh/sshd_config.d/*.conf as the last line in the file. A possible minor downside is people might be more inclined to uncomment some of the default entries, rather than adding a snippet in the .d directory. 2) Define all debian-specific configuration options in /etc/ssh/sshd_config.d/debian.conf or similar, and leave all options in /etc/ssh/sshd_config commented out. Alternately, a separate file for each overridden option might be specifyable, e.g. /etc/ssh/sshd_config.d/x11forwarding.conf live well, vagrant
signature.asc
(application/pgp-signature, 227 B)
-----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZcVAlQAKCRDcUY/If5cW qgpjAP45Sk5rR4P2ePamHBvMINUk3pqvHbUfK9sgfVlmSUBHtAEAx/Jw963iRvbv U5wJzXFPfxQTh2F7mRXmvBEJnTRJBwY= =7Rng -----END PGP SIGNATURE-----