SV-269367r1050250_rule
V-269367
SRG-OS-000105-GPOS-00052
ALMA-09-033240
CAT II
10
Configure the SSH daemon to accept public key encryption.
Add the following line to "/etc/ssh/sshd_config", or uncomment the line and set the value to "yes":
PubkeyAuthentication yes
Alternatively, add the setting to an include file if the line "Include /etc/ssh/sshd_config.d/*.conf" is found at the top of the "/etc/ssh/sshd_config" file:
$ cat << EOF | tee /etc/ssh/sshd_config.d/pubkey.conf
PubkeyAuthentication yes
EOF
Restart the SSH daemon for the settings to take effect:
$ systemctl restart sshd.service
Note: If the system administrator (SA) demonstrates the use of an approved alternate multifactor authentication method, this requirement is Not Applicable.
Verify that AlmaLinux OS 9 SSH daemon accepts public key encryption with the following command:
$ sshd -T | grep -i pubkeyauthentication
pubkeyauthentication yes
If "PubkeyAuthentication" is set to no, or the line is missing, this is a finding.
V-269367
False
ALMA-09-033240
Note: If the system administrator (SA) demonstrates the use of an approved alternate multifactor authentication method, this requirement is Not Applicable.
Verify that AlmaLinux OS 9 SSH daemon accepts public key encryption with the following command:
$ sshd -T | grep -i pubkeyauthentication
pubkeyauthentication yes
If "PubkeyAuthentication" is set to no, or the line is missing, this is a finding.
M
5664