SV-260534r1208804_rule
V-260534
SRG-OS-000125-GPOS-00065
UBTU-22-255065
CAT II
10
Configure Ubuntu 22.04 LTS to use strong authentication when establishing nonlocal maintenance and diagnostic sessions.
Add or modify the following line to /etc/ssh/sshd_config:
UsePAM yes
Restart SSH for the changes to take effect:
$ sudo systemctl restart ssh
Verify Ubuntu 22.04 LTS is configured to use strong authenticators in the establishment of nonlocal maintenance and diagnostic maintenance by using the following command:
$ sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH 'usepam'
/etc/ssh/sshd_config:UsePAM yes
If "UsePAM" is not set to "yes", is commented out, is missing, or conflicting results are returned, this is a finding.
V-260534
False
UBTU-22-255065
Verify Ubuntu 22.04 LTS is configured to use strong authenticators in the establishment of nonlocal maintenance and diagnostic maintenance by using the following command:
$ sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH 'usepam'
/etc/ssh/sshd_config:UsePAM yes
If "UsePAM" is not set to "yes", is commented out, is missing, or conflicting results are returned, this is a finding.
M
5594