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: dda195e3fff8ce28c1900512fc19e2c5134b960ab51a86a08ec6b1d927fdb79d