Update SSH configuration to allow password authentication

Enable password authentication for SSH.
This commit is contained in:
Marek Miklewicz
2025-12-16 08:59:37 +01:00
committed by GitHub
parent b2d3e9159a
commit 08cd154e9e
+2
View File
@@ -138,6 +138,8 @@ echo "Ustawienie dodatkowych zabezpieczen SSH"
if ! grep -q '^Match User root' /etc/ssh/sshd_config; then if ! grep -q '^Match User root' /etc/ssh/sshd_config; then
daupdate secssh2 daupdate secssh2
fi 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" echo "Ustawienie kluczy logowania do DirectAdmina i kluczy SSH hitme"