Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"'
```