From 6e19ff2efb9664eab47ff38443680c82d43b3c84 Mon Sep 17 00:00:00 2001 From: Tommy Date: Fri, 10 Mar 2023 18:35:12 -0500 Subject: [PATCH] Explicitly disable password auth Signed-off-by: Tommy --- Proxmox-7.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/Proxmox-7.sh b/Proxmox-7.sh index 52823fd..a785640 100644 --- a/Proxmox-7.sh +++ b/Proxmox-7.sh @@ -2,6 +2,7 @@ echo 'GSSAPIAuthentication no VerifyHostKeyDNS yes' | tee /etc/ssh/ssh_config.d/10-custom.conf +sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config sed -i 's/#GSSAPIAuthentication no/GSSAPIAuthentication no/g' /etc/ssh/sshd_config mkdir -p /etc/systemd/system/sshd.service.d curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/sshd.service.d/limits.conf -o /etc/systemd/system/sshd.service.d/limits.conf