From 08cd154e9e999b09f83bd3e96f5e9ec00801c6ce Mon Sep 17 00:00:00 2001 From: Marek Miklewicz <86836305+marsonpl@users.noreply.github.com> Date: Tue, 16 Dec 2025 08:59:37 +0100 Subject: [PATCH] Update SSH configuration to allow password authentication Enable password authentication for SSH. --- dapostinstall.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dapostinstall.sh b/dapostinstall.sh index f15bc74..5f1e114 100755 --- a/dapostinstall.sh +++ b/dapostinstall.sh @@ -138,6 +138,8 @@ echo "Ustawienie dodatkowych zabezpieczen SSH" if ! grep -q '^Match User root' /etc/ssh/sshd_config; then daupdate secssh2 fi +echo "Dodanie autoryzacji hasłem" +sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config echo "Ustawienie kluczy logowania do DirectAdmina i kluczy SSH hitme"