SV-261338r996845_rule
V-261338
SRG-OS-000032-GPOS-00013
SLEM-05-255065
CAT II
10
Configure SSH to verbosely log connection attempts and failed logon attempts to SLEM 5.
Add or modify the following line in the "/etc/ssh/sshd_config" file:
LogLevel VERBOSE
Restart the SSH daemon in order for the changes to take effect:
> sudo systemctl restart sshd.service
Verify SSH is configured to verbosely log connection attempts and failed logon attempts to SLEM 5 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:LogLevel VERBOSE
If "LogLevel" is not set to "VERBOSE", is commented out, missing, or conflicting results are returned, this is a finding.
V-261338
False
SLEM-05-255065
Verify SSH is configured to verbosely log connection attempts and failed logon attempts to SLEM 5 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:LogLevel VERBOSE
If "LogLevel" is not set to "VERBOSE", is commented out, missing, or conflicting results are returned, this is a finding.
M
5596