Information
In order to limit how long the services are allowed to run, set a timeout to automatically
stop the service for ESXi shell and SSH sessions.
*Rationale*
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.
Solution
From the vSphere web client-
1. Select the host and click 'Manage' -> 'Settings' -> 'System' -> 'Advanced System
Settings'.
2. Type ESXiShellTimeOut in the filter.
3. Click on the attribute to highlight it.
4. Click the pencil icon to edit.
5. Set the attribute to 3600 seconds (1 hour) or less.
6. Click 'OK'.
Note- A value of 0 disables the ESXi ShellTimeOut. It is recommended to set
the ESXiShellInteractiveTimeOut together with ESXiShellTimeOut.To implement the recommended configuration state, run the following PowerCLI
command-# Set UserVars.ESXiShellTimeOut to 3660 on all hosts
Get-VMHost | Foreach { Set-VMHostAdvancedConfiguration -VMHost $_ -Name
UserVars.ESXiShellTimeOut -Value 3600 }
Default Value-The prescribed state is not the default state.