mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
system: allow custom additions to sshd_config (#8206)
This commit is contained in:
parent
20402d1d6a
commit
99a4563c1e
@ -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";
|
||||
|
||||
5
src/etc/ssh/sshd_config.d/README
Normal file
5
src/etc/ssh/sshd_config.d/README
Normal 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.
|
||||
Loading…
x
Reference in New Issue
Block a user