UCF STIG Viewer Logo

The Photon operating system must configure Secure Shell (SSH) to display the last login immediately after authentication.


Finding ID Version Rule ID IA Controls Severity
V-258879 PHTN-40-000216 SV-258879r933698_rule Medium
Providing users with feedback on the last time they logged on via SSH facilitates user recognition and reporting of unauthorized account use.
VMware vSphere 8.0 vCenter Appliance Photon OS 4.0 Security Technical Implementation Guide 2023-10-29


Check Text ( C-62619r933696_chk )
At the command line, run the following command to verify the running configuration of sshd:

# sshd -T|&grep -i PrintLastLog

Example result:

printlastlog yes

If "PrintLastLog" is not set to "yes", this is a finding.
Fix Text (F-62528r933697_fix)
Navigate to and open:


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