If a user enables the ESXi Shell on a host, but forgets to log out of the session, the idle session remains connected indefinitely. The open connection can increase the potential for someone to gain privileged access to the host. You can prevent this by setting a timeout for idle sessions.

About this task

The idle timeout is the amount of time that can elapse before the user is logged out of an idle interactive sessions. Changes to the idle timeout apply the next time a user logs in to the ESXi Shell and do not affect existing sessions.

Procedure

  1. Select the host in the inventory and click the Configuration tab.
  2. Under Software, select Advanced Settings.
  3. In the left panel, select UserVars.
  4. In the UserVars.ESXiShellInteractiveTimeOut field, enter the availability timeout setting.

    You must restart the SSH service and the ESXi Shell service for the timeout to take effect.

  5. Click OK.

Results

If you are logged in when the timeout period elapses, your session will persist. However, after you log out or your session is terminated, users are not allowed to log in.