1.58 UBTU-22-255025

Information

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

GROUP ID: V-260526
RULE ID: SV-260526r991591

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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|I, CCI|CCI-000366, CSCv7|4.4, Rule-ID|SV-260526r991591_rule, STIG-ID|UBTU-22-255025, Vuln-ID|V-260526

Plugin: Unix

Control ID: 30766cc7a226300e54acfccef745d9503707874fb6c9ed192c2254e1f963da9c