UBTU-18-010424 - The Ubuntu operating system must not allow unattended or automatic login via ssh.

Information

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

Solution

Configure the Ubuntu operating system to allow the SSH daemon to not allow unattended or automatic login to the system.

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

PermitEmptyPasswords no
PermitUserEnvironment no

In order for the changes to take effect, the SSH daemon must be restarted.

# sudo systemctl restart sshd.service

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_CAN_Ubuntu_18-04_LTS_V2R15_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|I, CCI|CCI-000366, Rule-ID|SV-219314r991591_rule, STIG-ID|UBTU-18-010424, STIG-Legacy|SV-109955, STIG-Legacy|V-100851, Vuln-ID|V-219314

Plugin: Unix

Control ID: 1be5c101f0a5fc7211d1bf556350e0042d9fbdcac7d924dd4a04d159c35c955c