UCF STIG Viewer Logo

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-239162 PHTN-67-000091 SV-239162r675294_rule Medium
Description
Providing users with feedback on the last time they logged on via SSH facilitates user recognition and reporting of unauthorized account use.
STIG Date
VMware vSphere 6.7 Photon OS Security Technical Implementation Guide 2022-06-17

Details

Check Text ( C-42373r675292_chk )
At the command line, execute 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-42332r675293_fix)
Open /etc/ssh/sshd_config with a text editor.

Ensure that the "PrintLastLog" line is uncommented and set to the following:

PrintLastLog yes

At the command line, execute the following command:

# service sshd reload