SV-238218r653829_rule
V-238218
SRG-OS-000480-GPOS-00229
UBTU-20-010047
CAT I
10
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
Restart the SSH daemon for the changes to take effect:
$ sudo systemctl restart sshd.service
Verify that unattended or automatic login via SSH is disabled with the following command:
$ egrep '(Permit(.*?)(Passwords|Environment))' /etc/ssh/sshd_config
PermitEmptyPasswords no
PermitUserEnvironment no
If "PermitEmptyPasswords" or "PermitUserEnvironment" keywords are not set to "no", are missing completely, or are commented out, this is a finding.
V-238218
False
UBTU-20-010047
Verify that unattended or automatic login via SSH is disabled with the following command:
$ egrep '(Permit(.*?)(Passwords|Environment))' /etc/ssh/sshd_config
PermitEmptyPasswords no
PermitUserEnvironment no
If "PermitEmptyPasswords" or "PermitUserEnvironment" keywords are not set to "no", are missing completely, or are commented out, this is a finding.
M
5318