SV-274052r1120144_rule
V-274052
SRG-OS-000125-GPOS-00065
AZLX-23-001255
CAT I
10
Configure Amazon Linux 2023 SSHD to use the UsePAM interface.
Add or modify 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 Amazon Linux 2023 SSHD is configured to allow for the UsePAM interface with 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'
/etc/ssh/sshd_config.d/50-redhat.conf:UsePAM yes
If the "UsePAM" keyword is set to "no", is missing, or is commented out, this is a finding.
V-274052
False
AZLX-23-001255
Verify Amazon Linux 2023 SSHD is configured to allow for the UsePAM interface with 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'
/etc/ssh/sshd_config.d/50-redhat.conf:UsePAM yes
If the "UsePAM" keyword is set to "no", is missing, or is commented out, this is a finding.
M
5700