Information
The PermitEmptyPasswords parameter specifies if the SSH server allows login to accounts with empty password strings.
Disallowing remote shell access to accounts that have an empty password reduces the probability of unauthorized access to the system
Solution
Edit or create a file ending in *.conf in the /etc/ssh/sshd_config.d/ directory or the /etc/ssh/sshd_config file and set the PermitEmptyPasswords parameter as follows:
PermitEmptyPasswords no
Run the following command to comment out any PermitEmptyPasswords parameter entries in files ending in *.conf in the /etc/ssh/sshd_config.d/ directory or the /etc/ssh/sshd_config file that include any setting other than no
# grep -Pi '^h*PermitEmptyPasswordsb' /etc/ssh/sshd_config /etc/ssh/sshd_config.d/*.conf | grep -Evi 'no' | while read -r l_out; do sed -ri "/^s*PermitEmptyPasswordss+/s/^/# /" "$(awk -F: '{print $1}' <<< $l_out)";done