system: allow custom additions to sshd_config (#8206)

This commit is contained in:
Neil Greatorex 2025-01-14 15:34:43 +00:00 committed by GitHub
parent 20402d1d6a
commit 99a4563c1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -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";

View File

@ -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.