RHEL-09-255165 - RHEL 9 SSH daemon must display the date and time of the last successful account logon upon an SSH logon.

Information

Providing users feedback on when account accesses last occurred facilitates user recognition and reporting of unauthorized account use.

Solution

Configure the SSH daemon to provide users with feedback on when account accesses last occurred.

Add the following line to "/etc/ssh/sshd_config" or to a file in "/etc/ssh/sshd_config.d", or uncomment the line and set the value to "yes":

PrintLastLog yes

The SSH service must be restarted for changes to take effect:

$ sudo systemctl restart sshd.service

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-258009r1045077_rule, STIG-ID|RHEL-09-255165, Vuln-ID|V-258009

Plugin: Unix

Control ID: 52416b7c820ad9bc3c1e7f3d5403277d5d5fca63964307a4549ec27bb298a272