diff --git a/src/etc/inc/plugins.inc.d/openssh.inc b/src/etc/inc/plugins.inc.d/openssh.inc index 8d4c9c0d4..bf1230b54 100644 --- a/src/etc/inc/plugins.inc.d/openssh.inc +++ b/src/etc/inc/plugins.inc.d/openssh.inc @@ -158,6 +158,7 @@ function openssh_configure_do($verbose = false, $interface_map = null) $sshport = isset($sshcfg['port']) ? $sshcfg['port'] : 22; $sshconf = "# This file was automatically generated by /usr/local/etc/inc/plugins.inc.d/openssh.inc\n"; + $sshconf .= 'Include /usr/local/etc/ssh/sshd_config.d/*.conf' . PHP_EOL; $sshconf .= "Port {$sshport}\n"; $sshconf .= "Protocol 2\n"; $sshconf .= "Compression yes\n"; diff --git a/src/etc/ssh/sshd_config.d/README b/src/etc/ssh/sshd_config.d/README new file mode 100644 index 000000000..be1e2ff44 --- /dev/null +++ b/src/etc/ssh/sshd_config.d/README @@ -0,0 +1,5 @@ +# sshd_config overrides directory: +# Add any overrides or additions to sshd_config in this directory +# +# These files will be included at the start of the configuration, +# so options set in them will override those in the main sshd_config.