Bug 2351

Summary: sshd: conf.d directory for configuration snippets (similar to nginx or apache)
Product: Portable OpenSSH Reporter: Laban Mwangi <lmwangi>
Component: sshdAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED DUPLICATE    
Severity: enhancement CC: lmwangi, online
Priority: P5    
Version: 6.7p1   
Hardware: All   
OS: All   

Description Laban Mwangi 2015-02-18 23:28:15 AEDT
Dear Maintainer,
 It would be nice if sshd had a config directory in the same vein as /etc/nginx/conf.d/ on Debian. This would allow third party packages to add config directives without mangling sshd_config.

As an example, I would like to add support for sftp-internal iff a specific package is installed (For sftp only access to a chrooted path). If there was a conf.d directory, the installer package could
have dropped the relevant config block and SIGHUP'd sshd. With the current setup, I'll probably be forced to replace the existing /etc/ssh/sshd_config with an appropriate one.

Please note that I had filed this against Debian (Bug#778675) and there was a suggestion that this should be fixed upstream (to spread the benefit :)

Cheers,
Laban
Comment 1 online 2018-02-26 21:55:45 AEDT
This is a duplicate of 2468 which has more discussion and a proposed patch.

*** This bug has been marked as a duplicate of bug 2468 ***
Comment 2 Damien Miller 2021-04-23 15:08:17 AEST
closing resolved bugs as of 8.6p1 release