Ubuntu 22.04 LTS must not allow unattended or automatic login via SSH.
An XCCDF Rule
Description
<VulnDiscussion>Failure to restrict system access to authenticated users negatively impacts Ubuntu 22.04 LTS security.</VulnDiscussion><FalsePositives></FalsePositives><FalseNegatives></FalseNegatives><Documentable>false</Documentable><Mitigations></Mitigations><SeverityOverrideGuidance></SeverityOverrideGuidance><PotentialImpacts></PotentialImpacts><ThirdPartyTools></ThirdPartyTools><MitigationControl></MitigationControl><Responsibility></Responsibility><IAControls></IAControls>
- ID
- SV-260526r991591_rule
- Severity
- High
- References
- Updated
Remediation - 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