ESXi : set-shell-timeout

Information

Set a timeout to limit how long the ESXi Shell and SSH services are allowed to run

When the ESXi Shell or SSH services are enabled on a host they will run indefinitely. To avoid having these services left running set the ESXiShellTimeOut. The ESXiShellTimeOut defines a window of time after which the ESXi Shell and SSH services will automatically be terminated.

http://pubs.vmware.com/vsphere-65/topic/com.vmware.vsphere.security.doc/GUID-B314F79B-2BDD-4D68-8096-F009B87ACB33.html

http://kb.vmware.com/kb/2004746

Solution

# Set Remove UserVars.ESXiShellTimeOut to 900 on all hosts -
Get-VMHost | Foreach { Set-VMHostAdvancedConfiguration -VMHost $_ -Name UserVars.ESXiShellTimeOut -Value 900 }

See Also

https://www.vmware.com/content/dam/digitalmarketing/vmware/en/files/xls/vmware-6-5-update-1-security-configuration-guide.xlsx

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-12

Plugin: VMware

Control ID: ddd084307b28792dd12e7595759dde8befe2c7e96dd8c57d0c684fcb1b7a3788