From a1b3c6c16103b6ae7d758c5dcd772523a6894b10 Mon Sep 17 00:00:00 2001 From: mistsage2 Date: Sun, 25 May 2025 18:06:03 -0900 Subject: [PATCH] Add sshdconfig --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7cc1ea5..fa14db0 100644 --- a/README.md +++ b/README.md @@ -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 <> /etc/ssh/sshd_config +PermitRootLogin prohibit-password +AuthorizedKeysFile .ssh/authorized_keys +Password Authentication no +EOT \ No newline at end of file