aports/main/openssh/include-config-dir.patch
Jakub Jirutka 3903cd4657 main/openssh: include /etc/ssh/ssh(d)_config.d/*.conf by default
Allow modular configuration without modifying /etc/ssh/ssh_config
or /etc/ssh/sshd_config. This is inspired by Debian and Fedora.
2023-06-14 14:16:22 +00:00

26 lines
745 B
Diff

--- a/ssh_config
+++ b/ssh_config
@@ -17,6 +17,10 @@
# list of available options, their meanings and defaults, please see the
# ssh_config(5) man page.
+# Include configuration snippets before processing this file to allow the
+# snippets to override directives set in this file.
+Include /etc/ssh/ssh_config.d/*.conf
+
# Host *
# ForwardAgent no
# ForwardX11 no
--- a/sshd_config
+++ b/sshd_config
@@ -10,6 +10,10 @@
# possible, but leave them commented. Uncommented options override the
# default value.
+# Include configuration snippets before processing this file to allow the
+# snippets to override directives set in this file.
+Include /etc/ssh/sshd_config.d/*.conf
+
#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0