1. Home
  2. Security Hardening
  3. DISA STIG VMware vSphere 6.7 ESXi V1R1
  4. ESXI-67-000035 – The ESXi host must be configured to disable nonessential capabilities by disabling SSH.

ESXI-67-000035 – The ESXi host must be configured to disable nonessential capabilities by disabling SSH.

Details

The ESXi Shell is an interactive command line interface (CLI) available at the ESXi server console. The ESXi shell provides temporary access to commands essential for server maintenance. Intended primarily for use in break-fix scenarios, the ESXi shell is well suited for checking and modifying configuration details, not always generally accessible, using the vSphere Client.

The ESXi shell is accessible remotely using SSH by users with the Administrator role. Under normal operating conditions, SSH access to the host must be disabled as is the default. As with the ESXi shell, SSH is also intended only for temporary use during break-fix scenarios. SSH must therefore be disabled under normal operating conditions and must only be enabled for diagnostics or troubleshooting. Remote access to the host must therefore be limited to the vSphere Client or Host Client at all other times.

Satisfies: SRG-OS-000095-VMM-000480, SRG-OS-000297-VMM-001040, SRG-OS-000298-VMM-001050

Solution

From the vSphere Client, select the ESXi host and go to Configure >> System >> Services.

Under ‘Services’, select ‘SSH’ service and click the ‘Stop’ button to stop the service. Use Edit Startup policy to ‘Start and stop manually’ and click ‘OK’.

or

From a PowerCLI command prompt while connected to the ESXi host, run the following commands:

Get-VMHost | Get-VMHostService | Where {$_.Label -eq ‘SSH’} | Set-VMHostService -Policy Off
Get-VMHost | Get-VMHostService | Where {$_.Label -eq ‘SSH’} | Stop-VMHostService

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Access Control, Configuration Management.This control applies to the following type of system VMware.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles