SV-282504r1200492_rule
V-282504
SRG-OS-000125-GPOS-00065
TOSS-05-000240
CAT I
10
Configure the TOSS 5 SSHD to use the "UsePAM" interface, by adding or modifying the following line in "/etc/ssh/sshd_config":
UsePAM yes
Restart the SSH daemon for the settings to take effect:
$ sudo systemctl restart sshd.service
Verify the TOSS 5 SSHD is configured to allow for the "UsePAM" interface using the following command:
$ sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH '^\s*usepam'
UsePAM yes
If the "UsePAM" keyword is set to "no", is missing, or is commented out, this is a finding.
V-282504
False
TOSS-05-000240
Verify the TOSS 5 SSHD is configured to allow for the "UsePAM" interface using the following command:
$ sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH '^\s*usepam'
UsePAM yes
If the "UsePAM" keyword is set to "no", is missing, or is commented out, this is a finding.
M
5738