From 92b639fe9edcdb3051a0ba7750a4e1013d56bc46 Mon Sep 17 00:00:00 2001 From: Tommy Date: Thu, 7 Sep 2023 14:44:00 -0700 Subject: [PATCH] Change sshd override --- GCP-Debian-11.sh | 2 +- RHEL-Server-9.sh | 2 +- Ubuntu-22.04-Server.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GCP-Debian-11.sh b/GCP-Debian-11.sh index 1224f26..5ae84ce 100644 --- a/GCP-Debian-11.sh +++ b/GCP-Debian-11.sh @@ -23,7 +23,7 @@ VerifyHostKeyDNS yes' | sudo tee /etc/ssh/ssh_config.d/10-custom.conf sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf sudo sed -i 's/#GSSAPIAuthentication no/GSSAPIAuthentication no/g' /etc/ssh/sshd_config sudo mkdir -p /etc/systemd/system/sshd.service.d -sudo curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/sshd.service.d/local.conf -o /etc/systemd/system/sshd.service.d/local.conf +sudo curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/sshd.service.d/local.conf -o /etc/systemd/system/sshd.service.d/override.conf sudo systemctl daemon-reload sudo systemctl restart sshd diff --git a/RHEL-Server-9.sh b/RHEL-Server-9.sh index c1ea57d..4749681 100644 --- a/RHEL-Server-9.sh +++ b/RHEL-Server-9.sh @@ -22,7 +22,7 @@ sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf echo 'X11Forwarding no GSSAPIAuthentication no PasswordAuthentication no' | sudo tee /etc/ssh/sshd_config.d/10-custom.conf -sudo curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/sshd.service.d/local.conf -o /etc/systemd/system/sshd.service.d/local.conf +sudo curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/sshd.service.d/local.conf -o /etc/systemd/system/sshd.service.d/override.conf sudo systemctl daemon-reload sudo systemctl restart sshd diff --git a/Ubuntu-22.04-Server.sh b/Ubuntu-22.04-Server.sh index 5a6aa5c..e5035ab 100644 --- a/Ubuntu-22.04-Server.sh +++ b/Ubuntu-22.04-Server.sh @@ -32,7 +32,7 @@ echo 'GSSAPIAuthentication no VerifyHostKeyDNS yes' | sudo tee /etc/ssh/ssh_config.d/10-custom.conf sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf sudo mkdir -p /etc/systemd/system/sshd.service.d -sudo curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/sshd.service.d/local.conf -o /etc/systemd/system/sshd.service.d/local.conf +sudo curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/sshd.service.d/local.conf -o /etc/systemd/system/sshd.service.d/override.conf sudo systemctl daemon-reload sudo systemctl restart sshd