STIGQter STIGQter: STIG Summary: Canonical Ubuntu 24.04 LTS Security Technical Implementation Guide Version: 1 Release: 6 Benchmark Date: 01 Jul 2026:

Ubuntu 24.04 LTS must not allow unattended or automatic login via SSH.

DISA Rule

SV-270717r1208700_rule

Vulnerability Number

V-270717

Group Title

SRG-OS-000480-GPOS-00229

Rule Version

UBTU-24-300031

Severity

CAT I

CCI(s)

Weight

10

Fix Recommendation

Configure Ubuntu 24.04 LTS 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

Restart SSH for the changes to take effect:

$ sudo systemctl restart ssh

Check Contents

Verify unattended or automatic login via SSH is disabled with the following command:

$ egrep -r '(Permit(.*?)(Passwords|Environment))' /etc/ssh/sshd_config
PermitEmptyPasswords no
PermitUserEnvironment no

If the "PermitEmptyPasswords" or "PermitUserEnvironment" keywords are set to a value other than "no", are commented out, are both missing, or conflicting results are returned, this is a finding.

Vulnerability Number

V-270717

Documentable

False

Rule Version

UBTU-24-300031

Severity Override Guidance

Verify unattended or automatic login via SSH is disabled with the following command:

$ egrep -r '(Permit(.*?)(Passwords|Environment))' /etc/ssh/sshd_config
PermitEmptyPasswords no
PermitUserEnvironment no

If the "PermitEmptyPasswords" or "PermitUserEnvironment" keywords are set to a value other than "no", are commented out, are both missing, or conflicting results are returned, this is a finding.

Check Content Reference

M

Target Key

5673