From 3336de3f2378b545cd194d5ddb1d1257a7935319 Mon Sep 17 00:00:00 2001 From: Tommy Date: Tue, 15 Oct 2024 14:16:16 -0700 Subject: [PATCH] Fix systemd override config --- Fedora-Server-40.sh | 2 +- Proxmox-8.sh | 2 +- RHEL-9.sh | 2 +- Ubuntu-24.04-Server.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Fedora-Server-40.sh b/Fedora-Server-40.sh index 7aa62c5..fadf604 100644 --- a/Fedora-Server-40.sh +++ b/Fedora-Server-40.sh @@ -63,7 +63,7 @@ unpriv curl -s https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Script sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf sudo mkdir -p /etc/systemd/system/sshd.service.d/ sudo chmod 755 /etc/systemd/system/sshd.service.d/ -unpriv curl -s https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/sshd.service.d/local.conf | sudo tee /etc/systemd/system/sshd.service.d/override.conf > /dev/null +unpriv curl -s https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/sshd.service.d/override.conf | sudo tee /etc/systemd/system/sshd.service.d/override.conf > /dev/null sudo chmod 644 /etc/systemd/system/sshd.service.d/override.conf sudo systemctl daemon-reload sudo systemctl restart sshd diff --git a/Proxmox-8.sh b/Proxmox-8.sh index c6a56e7..3ca748a 100644 --- a/Proxmox-8.sh +++ b/Proxmox-8.sh @@ -39,7 +39,7 @@ sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/ssh/sshd_config.d/10-cu curl -s 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 > /dev/null sudo mkdir -p /etc/systemd/system/sshd.service.d/ sudo chmod 755 /etc/systemd/system/sshd.service.d/ -curl -s https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/sshd.service.d/local.conf | tee /etc/systemd/system/ssh.service.d/override.conf > /dev/null +curl -s https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/sshd.service.d/override.conf | tee /etc/systemd/system/ssh.service.d/override.conf > /dev/null systemctl daemon-reload systemctl restart sshd diff --git a/RHEL-9.sh b/RHEL-9.sh index ab710eb..4667c23 100644 --- a/RHEL-9.sh +++ b/RHEL-9.sh @@ -58,7 +58,7 @@ unpriv curl -s https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Script sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf sudo mkdir -p /etc/systemd/system/sshd.service.d/ sudo chmod 755 /etc/systemd/system/sshd.service.d/ -unpriv curl -s https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/sshd.service.d/local.conf | sudo tee /etc/systemd/system/sshd.service.d/override.conf > /dev/null +unpriv curl -s https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/sshd.service.d/override.conf | sudo tee /etc/systemd/system/sshd.service.d/override.conf > /dev/null sudo systemctl daemon-reload sudo systemctl restart sshd diff --git a/Ubuntu-24.04-Server.sh b/Ubuntu-24.04-Server.sh index a02e0eb..49bdc99 100644 --- a/Ubuntu-24.04-Server.sh +++ b/Ubuntu-24.04-Server.sh @@ -57,7 +57,7 @@ unpriv curl -s https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Script sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf sudo mkdir -p /etc/systemd/system/ssh.service.d/ sudo chmod 755 /etc/systemd/system/ssh.service.d/ -unpriv curl -s https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/sshd.service.d/local.conf | sudo tee /etc/systemd/system/ssh.service.d/override.conf > /dev/null +unpriv curl -s https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/sshd.service.d/override.conf | sudo tee /etc/systemd/system/ssh.service.d/override.conf > /dev/null sudo chmod 644 /etc/systemd/system/ssh.service.d/override.conf sudo systemctl daemon-reload sudo systemctl restart ssh