Enabling SSH access when vSphere Client and VAMI are unavailable
book
Article ID: 408596
calendar_today
Updated On:
Products
VMware vCenter Server
Issue/Introduction
How to enable SSH on vCenter Server appliances when the vCenter Server Appliance Management Interface and vSphere Web Clients are unavailable, possibly due to services being down.
Environment
7.x 8.x
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 your 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. Login as root. 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.
Run the below commands to enable SSH.
ssh.get shows the current status.
ssh.set --enabled true allows you to change the state of SSH to enabled
NOTE: Use ‘false’ instead of 'true' to disable SSH.