mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 10:35:53 +02:00
openssh: Introduce include directory for additional sshd config files
This patch adds the prosibility to place additional *.config files in /etc/ssh/sshd_config.d/ which will be included and loaded during the daemon startup process. Because this files will not be overwritten by any update, they can be used to place custom or other persistent settings. Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
38067c08c7
commit
1a4d5cfd92
@@ -8,6 +8,7 @@ etc/ssh/ssh_config
|
||||
#etc/ssh/ssh_host_rsa_key
|
||||
#etc/ssh/ssh_host_rsa_key.pub
|
||||
etc/ssh/sshd_config
|
||||
etc/ssh/sshd_config.d
|
||||
usr/bin/scp
|
||||
usr/bin/sftp
|
||||
usr/bin/ssh
|
||||
|
||||
@@ -57,4 +57,7 @@ TCPKeepAlive no
|
||||
# Add support for SFTP
|
||||
Subsystem sftp /usr/lib/openssh/sftp-server
|
||||
|
||||
# Include additional sshd config files.
|
||||
Include /etc/ssh/sshd_config.d/*.conf
|
||||
|
||||
# EOF
|
||||
|
||||
@@ -91,5 +91,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
install -v -m 644 $(DIR_SRC)/config/ssh/ssh_config \
|
||||
/etc/ssh/ssh_config
|
||||
|
||||
# Create directory for additional config
|
||||
# config files.
|
||||
mkdir -pv /etc/ssh/sshd_config.d/
|
||||
|
||||
@rm -rf $(DIR_APP)
|
||||
@$(POSTBUILD)
|
||||
|
||||
Reference in New Issue
Block a user