6.7 Blocking Authentication Using Empty/Null Passwords for SSH

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/616

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

References: 800-53|IA-5

Plugin: Unix

Control ID: 65171c0caad9d6b87596da26fe279f44a9facd96b30bad65846008d58fd93f6a