testing
This commit is contained in:
8
debian/debian-configure-sshd.sh
vendored
8
debian/debian-configure-sshd.sh
vendored
@@ -24,13 +24,13 @@ fi
|
||||
isInFile=$(cat /etc/hostname | grep -c "proxmox")
|
||||
if [ $isInFile -eq 0 ]
|
||||
then
|
||||
isInFile=$(cat /etc/ssh/sshd_config | grep -c "#PasswordAuthentication no")
|
||||
if [ $isInFile -eq 0 ]
|
||||
then
|
||||
# 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
|
||||
sed -i 's/PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config
|
||||
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config
|
||||
fi
|
||||
# fi
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user