PHTN-30-000085 - The Photon operating system must configure sshd to display the last login immediately after authentication.

Information

Providing users with feedback on the last time they logged on via Secure Shell (SSH) facilitates user recognition and reporting of unauthorized account use.

Solution

Navigate to and open:

/etc/ssh/sshd_config

Ensure the 'PrintLastLog' line is uncommented and set to the following:

PrintLastLog yes

At the command line, run the following command:

# systemctl restart sshd.service

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_VMW_vSphere_7-0_Y25M01_STIG.zip