Update SSH configuration to allow password authentication
Enable password authentication for SSH.
This commit is contained in:
@@ -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"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user