From 20cb52a73a590cdb18fd96473fcbcf131957051a Mon Sep 17 00:00:00 2001 From: Ralf-Peter Wolff Date: Fri, 29 Nov 2024 21:17:07 +0100 Subject: [PATCH] README.md aktualisiert --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8bc8083..8f043af 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,6 @@ chmod 600 ~/.ssh/authorized_keys ``` ``` -sed -i "s/.*PasswordAuthentication.*/PasswordAuthentication no/g" /etc/ssh/sshd_config +sed -ri "s/^#? *PasswordAuthentication *yes.*/PasswordAuthentication no/" /etc/ssh/sshd_config sudo systemctl restart ssh ```