diff --git a/Proxmox-8.sh b/Proxmox-8.sh index 8284b61..7154729 100644 --- a/Proxmox-8.sh +++ b/Proxmox-8.sh @@ -33,6 +33,7 @@ systemctl restart chronyd # Harden SSH curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/ssh/sshd_config.d/10-custom.conf | tee /etc/ssh/sshd_config.d/10-custom.conf +sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/ssh/sshd_config.d/10-custom.conf curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/ssh/ssh_config.d/10-custom.conf | tee /etc/ssh/ssh_config.d/10-custom.conf mkdir -p /etc/systemd/system/ssh.service.d curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/sshd.service.d/local.conf | tee /etc/systemd/system/ssh.service.d/override.conf @@ -109,4 +110,4 @@ systemctl restart pveproxy.service tuned-adm profile virtual-host # Enable fstrim.timer -systemctl enable --now fstrim.timer \ No newline at end of file +systemctl enable --now fstrim.timer