From 6b41fbeb203423f90107832415833396219c70fb Mon Sep 17 00:00:00 2001 From: mistsage2 Date: Sun, 25 May 2025 18:08:12 -0900 Subject: [PATCH] New Commands added --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fa14db0..401246a 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,5 @@ # Public-SSH-Key curl https://gitea.patchyfuntimes.com/mistsage2/Public-SSH-Key/raw/branch/main/homelab_pub --output /root/.ssh/authorized_keys && chmod 600 /root/.ssh/authorized_keys - -cat <> /etc/ssh/sshd_config -PermitRootLogin prohibit-password -AuthorizedKeysFile .ssh/authorized_keys -Password Authentication no -EOT \ No newline at end of file +echo "PermitRootLogin prohibit-password" >> /etc/ssh/sshd_config && echo "AuthorizedKeysFile .ssh/authorized_keys" >> /etc/ssh/sshd_config && echo "Password Authentication no" >> /etc/ssh/sshd_config +systemctl restart sshd \ No newline at end of file