ESXi : set-shell-interactive-timeout

Information

Set a timeout to automatically terminate idle ESXi Shell and SSH sessions.
If a user forgets to log out of their SSH session, the idle connection will remains open indefinitely, increasing the potential for someone to gain privileged access to the host. The ESXiShellInteractiveTimeOut allows you to automatically terminate idle shell sessions.

http://pubs.vmware.com/vsphere-60/topic/com.vmware.vsphere.security.doc/GUID-94F0C54F-05E3-4E16-8027-0280B9ED1009.html

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

Solution

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

See Also

https://www.vmware.com/content/dam/digitalmarketing/vmware/en/files/xls/vSphere_6_0_Hardening_Guide_GA_15_Jun_2015.xls

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-12

Plugin: VMware

Control ID: 5984ba9dc9150e1a88bd09bdc87e014a014a7456a0430fba5dd66b00c483d6c0