From 15584af9ce418ff5533154995d5b24ccf607aa61 Mon Sep 17 00:00:00 2001 From: graypawn Date: Wed, 12 Nov 2025 21:55:08 +0900 Subject: [PATCH] Revise SSHD configuration command in README Updated the SSHD configuration command in the README. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ef7acfb..f9e3a28 100644 --- a/README.md +++ b/README.md @@ -3,5 +3,5 @@ proxmox의 LXC, VM의 설치를 자동화 하기 위한 스크립트 모음 ### ``` bash -bash -c "$(curl -fsSL https://raw.githubusercontent.com/graypawn/proxmox-script/heads/main/active_sshd.sh)" +bash -c 'set -euo pipefail; SSHD_CONFIG="/etc/ssh/sshd_config"; cp "$SSHD_CONFIG" "${SSHD_CONFIG}.bak"; echo "[INFO] Backup created at ${SSHD_CONFIG}.bak"; if grep -q "^#PermitRootLogin" "$SSHD_CONFIG"; then sed -i "s/^#PermitRootLogin.*/PermitRootLogin yes/" "$SSHD_CONFIG"; elif grep -q "^PermitRootLogin" "$SSHD_CONFIG"; then sed -i "s/^PermitRootLogin.*/PermitRootLogin yes/" "$SSHD_CONFIG"; else echo "PermitRootLogin yes" >> "$SSHD_CONFIG"; fi; echo "[INFO] PermitRootLogin set to yes"; systemctl restart sshd; echo "[INFO] SSH service restarted"' ```