6.0

VMware, Inc. 7
Command-Line Management in vSphere 5 and vSphere 6 for Service Console Users
Setting Timeouts for the ESXi Shell
TheESXiShellsupportsavailabilitytimeoutandidletimeouts.Bydefault,eachtimeoutisdisabled.
Availabilitytimeout.TheamountoftimethatcanelapsebeforeyoumustloginaftertheESXiShellis
enabled.Afterthetimeoutperiod,theserviceisdisabledandusersarenotallowedtologin.
Idletimeout.Theamountoftimethatcanelapsebeforetheuserisloggedoutofanidleinteractive
sessions.ChangestotheidletimeoutapplythenexttimeauserlogsintotheESXiShellanddonotaffect
existingsessions.
To set ESXi Shell timeouts from the Direct Console
1FromtheTroubleshootingModeOptionsmenu,select
ModifyESXiShellandSSHtimeoutsandpress
Enter.
2EntertheavailabilitytimeoutandpressEnter.
3EntertheidletimeoutandpressEnter.
4PressEscuntilyoureturntothemainmenuoftheDirectConsoleInterface.
To set ESXi Shell timeouts from the vSphere Web Client
1 Selectthehostintheinventory,clicktheManagetab,andclickSettings.
2Under
System,selectAdvancedSystemSettings.
3Intheleftpanel,clickUserVars.
4 SelectUserVars.ESXiShellTimeOutandclicktheEditicon
5Entertheavailabilitytimeoutinminutes.
YoumustrestarttheSSHserviceandtheESXiShellserviceforthetimeouttotakeeffect.
6 SelectUserVars.ESXiShellInteractiveTimeOutandclicktheEditicon
7Entertheavailabilitytimeoutinminutes.
YoumustrestarttheSSHserviceandtheESXiShellserviceforthetimeouttotakeeffect.
8ClickOK.
Accessing the ESXi Shell with the Direct Console
AfteryouenableESXiShellaccess,youcanaccessthelocalshell.
To access the local ESXi Shell
1Atthemaindirectconsolescreen,pressAlt-F1toopenavirtualconsolewindowtothehost.
2Providecredentialswhenprompted.
Whenyoutypethepassword,charactersarenotdisplayedontheconsole.
3Tologout,typeexitin
theshell.
4Toreturntothedirectconsole,pressAlt-F2.
Remote Access to ESXi Shell Using SSH
IfSecureShellisenabledfortheESXiShell,youcanrunshellcommandsbyusingaSecureShellclientsuch
asSSHorPuTTY.
Enabling SSH for the ESXi Shell
Bydefault,youcannotaccesstheESXiShellusingaSecureShellclient.YoucanenableSSHaccessfromthe
directconsole.