The Photon operating system must configure sshd to display the last login immediately after authentication.
Overview
Finding ID | Version | Rule ID | IA Controls | Severity |
V-256554 | PHTN-30-000085 | SV-256554r991589_rule | Medium |
Description |
Providing users with feedback on the last time they logged on via Secure Shell (SSH) facilitates user recognition and reporting of unauthorized account use. |
STIG | Date |
VMware vSphere 7.0 vCenter Appliance Photon OS Security Technical Implementation Guide | 2024-12-16 |
Details
Check Text (C-60229r887334_chk) |
At the command line, run the following command: # sshd -T|&grep -i PrintLastLog Expected result: PrintLastLog yes If the output does not match the expected result, this is a finding. |
Fix Text (F-60172r887335_fix) |
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 |