Ubuntu 22.04 LTS must not allow unattended or automatic login via SSH.
An XCCDF Rule
Description
Failure to restrict system access to authenticated users negatively impacts Ubuntu 22.04 LTS security.
- ID
- SV-260526r991591_rule
- Version
- UBTU-22-255025
- Severity
- High
- References
- Updated
Remediation Templates
A Manual Procedure
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