SV-281115r1184650_rule
V-281115
SRG-OS-000032-GPOS-00013
RHEL-10-500215
CAT II
10
Configure RHEL 10 to log connection attempts by adding or modifying the following line in "/etc/ssh/sshd_config" or in a file in "/etc/ssh/sshd_config.d":
LogLevel VERBOSE
Restart the SSH daemon with the following command for the settings to take effect:
$ sudo systemctl restart sshd.service
Verify RHEL 10 logs SSH connection attempts and failures to the server 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*loglevel'
/etc/ssh/sshd_config.d/90-sshd.conf:LogLevel VERBOSE
If a value of "VERBOSE" is not returned, or the line is commented out or missing, this is a finding.
V-281115
False
RHEL-10-500215
Verify RHEL 10 logs SSH connection attempts and failures to the server 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*loglevel'
/etc/ssh/sshd_config.d/90-sshd.conf:LogLevel VERBOSE
If a value of "VERBOSE" is not returned, or the line is commented out or missing, this is a finding.
M
5733