1.74 UBTU-24-300031

Information

The operating system must not allow unattended or automatic login via SSH.

GROUP ID: V-270717
RULE ID: SV-270717r1067177

Failure to restrict system access to authenticated users negatively impacts the operating system security.

Solution

Configure the SSH server to not allow unattended or automatic login to the system.

Add or modify the following lines in the "/etc/ssh/sshd_config" file:

PermitEmptyPasswords no
PermitUserEnvironment no

Restart the SSH daemon for the changes to take effect:

$ sudo systemctl restart sshd.service

See Also

https://workbench.cisecurity.org/benchmarks/22775

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|I, CCI|CCI-000366, CSCv7|4.4, Rule-ID|SV-270717r1067177_rule, STIG-ID|UBTU-24-300031, Vuln-ID|V-270717

Plugin: Unix

Control ID: 13d3f09f2bd1859e37e8a81a3640407145016685bae8c6b4ee12acd672c2896b