fixed typo

This commit is contained in:
2023-12-22 20:07:59 -06:00
parent 04e9d11a95
commit 52142bfbaf

View File

@@ -24,7 +24,7 @@ fi
isInFile=$(cat /etc/hostname | grep -c "proxmox")
if [ $isInFile -eq 0 ]
then
isInFile=$(cat /etc/ssh/sshd_config | grep -c "PasswordAuthentication no")
isInFile=$(cat /etc/ssh/sshd_config | grep -c "#PasswordAuthentication no")
if [ $isInFile -eq 0 ]
then
sed -i 's/#PasswordAuthentication no/PasswordAuthentication no/g' /etc/ssh/sshd_config