mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 01:26:38 +02:00
Allow modular configuration without modifying /etc/ssh/ssh_config or /etc/ssh/sshd_config. This is inspired by Debian and Fedora.
26 lines
745 B
Diff
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
|