Add sshdconfig

This commit is contained in:
2025-05-25 18:06:03 -09:00
parent 92888a7852
commit a1b3c6c161

View File

@@ -1,4 +1,9 @@
# Public-SSH-Key
curl https://gitea.patchyfuntimes.com/mistsage2/Public-SSH-Key/raw/branch/main/homelab_ed25519 --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
cat <<EOT >> /etc/ssh/sshd_config
PermitRootLogin prohibit-password
AuthorizedKeysFile .ssh/authorized_keys
Password Authentication no
EOT