.
This commit is contained in:
@ -65,11 +65,11 @@ UBUNTU_CHECK="$(distro | grep -c Ubuntu)"
|
|||||||
|
|
||||||
if [ "$UBUNTU_CHECK" -ne 1 ]; then
|
if [ "$UBUNTU_CHECK" -ne 1 ]; then
|
||||||
cat ../../ConfigFiles/SSH/Configs/ssh-audit-hardening.conf >/etc/ssh/sshd_config.d/ssh-audit_hardening.conf
|
cat ../../ConfigFiles/SSH/Configs/ssh-audit-hardening.conf >/etc/ssh/sshd_config.d/ssh-audit_hardening.conf
|
||||||
|
chmod og-rwx /etc/ssh/sshd_config.d/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Perms on sshd_config
|
# Perms on sshd_config
|
||||||
chmod og-rwx /etc/ssh/sshd_config
|
chmod og-rwx /etc/ssh/sshd_config
|
||||||
chmod og-rwx /etc/ssh/sshd_config.d/*
|
|
||||||
|
|
||||||
#todo
|
#todo
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user