SV-100131r1_rule
V-89481
SRG-OS-000032-GPOS-00013
VRAU-SL-000070
CAT II
10
To configure SSH to verbosely log connection attempts and failed logon attempts to the server, run the following command:
# sed -i 's/^.*\bLogLevel\b.*$/LogLevel VERBOSE/' /etc/ssh/sshd_config
The SSH service will need to be restarted after the above change has been made to SSH. This can be done by running the following command:
# service sshd restart
Verify that SSH is configured to verbosely log connection attempts and failed logon attempts to the server by running the following command:
# grep LogLevel /etc/ssh/sshd_config | grep -v '#'
The output message must contain the following text:
LogLevel VERBOSE
If it is not set to "VERBOSE", this is a finding.
V-89481
False
VRAU-SL-000070
Verify that SSH is configured to verbosely log connection attempts and failed logon attempts to the server by running the following command:
# grep LogLevel /etc/ssh/sshd_config | grep -v '#'
The output message must contain the following text:
LogLevel VERBOSE
If it is not set to "VERBOSE", this is a finding.
M
3459