mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-10-05 13:07:21 +02:00
sshd: prefix acceptenv.conf with number 01, install it
This commit is contained in:
parent
340b7be2b2
commit
f9efb926fa
2
install
2
install
@ -165,7 +165,7 @@ if [ "$(id -u)" == "0" ]; then
|
|||||||
# SSHd hardening hopefully. SECURITY WARNING
|
# SSHd hardening hopefully. SECURITY WARNING
|
||||||
mkdir -vp /etc/ssh/sshd_config.d/
|
mkdir -vp /etc/ssh/sshd_config.d/
|
||||||
chmod -v a+x /etc/ssh/sshd_config.d/
|
chmod -v a+x /etc/ssh/sshd_config.d/
|
||||||
cp etc/ssh/sshd_config.d/00-basic-security.conf /etc/ssh/sshd_config.d/
|
cp etc/ssh/sshd_config.d/{00-basic-security.conf,01-acceptenv.conf} /etc/ssh/sshd_config.d/
|
||||||
chmod -v a+r /etc/ssh/sshd_config.d/*.conf
|
chmod -v a+r /etc/ssh/sshd_config.d/*.conf
|
||||||
|
|
||||||
# Systemd configuration directories. SECURITY WARNINGS!
|
# Systemd configuration directories. SECURITY WARNINGS!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user