6.11 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.

Rationale:

Permitting login without a password is inherently risky.

Solution

Perform the following to implement the recommended state:

# awk '/^.PermitEmptyPasswords/ { $1 = '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/benchmarks/4777

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

References: 800-53|IA-5(1), CSCv7|4.4

Plugin: Unix

Control ID: 988607920487b1634c0566fdf7e826f55247b454ea7f8b402d2f4c7428f204ae