RHEL-09-255030 - RHEL 9 must log SSH connection attempts and failures to the server.

Information

SSH provides several logging levels with varying amounts of verbosity. 'DEBUG' is specifically not recommended other than strictly for debugging SSH communications since it provides so much data that it is difficult to identify important security information. 'INFO' or 'VERBOSE' level is the basic level that only records login activity of SSH users. In many situations, such as Incident Response, it is important to determine when a particular user was active on a system. The logout record can eliminate those users who disconnected, which helps narrow the field.

Solution

Configure RHEL 9 to log connection attempts add or modify the following line in '/etc/ssh/sshd_config'.

LogLevel VERBOSE

Restart the SSH daemon for the settings to take effect:

$ sudo systemctl restart sshd.service

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_9_V1R3_STIG.zip

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-17(1), CAT|II, CCI|CCI-000067, Rule-ID|SV-257982r952175_rule, STIG-ID|RHEL-09-255030, Vuln-ID|V-257982

Plugin: Unix

Control ID: 58a17be11eb331f562ad0af550a8cac85b900684ea2777396ce40e5d8f90fd30