6.7 Blocking Authentication Using Empty/Null Passwords for SSH - PermitEmptyPasswords = no

Information

The PermitEmptyPasswords value allows for direct login through SSH without a password by a remote user/application to resources on the local host in the same way a standard remote login would.

Permitting login without a password is inherently risky.

Solution

Perform the following to implement the recommended state:
# awk '/^PermitEmptyPasswords/ { $2 = "no" } { print }' /etc/ssh/sshd_config > /etc/ssh/sshd_config.CIS
# mv /etc/ssh/sshd_config.CIS /etc/ssh/sshd_config
# svcadm restart svc:/network/ssh

See Also

https://workbench.cisecurity.org/files/611

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

References: 800-53|IA-5

Plugin: Unix

Control ID: 771b70331313748c17664c61c96001a1e60250939b2d26c09088155d6cc6d8ca