Use the direct console user interface to enable the ESXi Shell.
Procedure
- From the Direct Console User Interface, press F2 to access the System Customization menu.
- Select Troubleshooting Options and press Enter.
- From the Troubleshooting Mode Options menu, select a service to enable.
- Enable ESXi Shell
- Enable SSH
- Press Enter to enable the service.
- (Optional) Set the timeout for the ESXi Shell.
By default, timeouts for the ESXi Shell is 0 (disabled).
The availability timeout setting is the number of minutes that can elapse before you must log in after the ESXi Shell is enabled. After the timeout period, if you have not logged in, the shell is disabled.
Note: If you are logged in when the timeout period elapses, your session will persist. However, the ESXi Shell will be disabled, preventing other users from logging in.- From the Troubleshooting Mode Options menu, select Modify ESXi Shell and SSH timeouts and press Enter.
- Enter the availability timeout in minutes.
The availability timeout is the number of minutes that can elapse before you must log in after the ESXi Shell is enabled.
- Press Enter.
- Enter the idle timeout.
The idle timeout is the number of minutes 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.
- Press Esc until you return to the main menu of the Direct Console User Interface.