Enabling SSH access when vSphere Client and VAMI are unavailable for vCenter Server
book
Article ID: 408596
calendar_today
Updated On:
Products
VMware vCenter Server
Issue/Introduction
This article aims to provide steps to enable SSH on the vCenter Server appliance when the vCenter Server Appliance Management Interface (VAMI) and the vSphere Web Clients are unavailable.
Resolution
Enable SSH via the DCUI
Open a remote console (or web console) to the VCSA VM from the ESXi host client
Press F2 to select "Customize System"
Login with root credentials
Navigate to "Troubleshooting Mode Options"
Select "Enable SSH"
Enable SSH from the Command Line
Open a remote console (or web console) to the VCSA VM from the ESXi host client
Press ALT + F1 to get a command line session. Note: If a login prompt is not presented, BASH is disabled. Follow the steps for the DCUI above, but select "Enable BASH" to enable the Bash shell.
Login with root credentials
Run the commands below to enable SSH:
To view the current status:
ssh.get
Change SSH state to enabled:
ssh.set --enabled true
Note: Use ‘false’ instead of 'true' to disable SSH.