error corrected

This commit is contained in:
2025-05-25 18:09:58 -09:00
parent 6b41fbeb20
commit a18058673a

View File

@@ -1,5 +1,5 @@
# Public-SSH-Key # 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 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
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 echo "PermitRootLogin prohibit-password" >> /etc/ssh/sshd_config && echo "AuthorizedKeysFile .ssh/authorized_keys" >> /etc/ssh/sshd_config && echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
systemctl restart sshd systemctl restart sshd