sshd: prefix acceptenv.conf with number 01, install it

This commit is contained in:
Aminda Suomalainen 2025-10-03 10:24:17 +03:00
parent 340b7be2b2
commit f9efb926fa
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
2 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ if [ "$(id -u)" == "0" ]; then
# SSHd hardening hopefully. SECURITY WARNING
mkdir -vp /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
# Systemd configuration directories. SECURITY WARNINGS!