Enable SSH on vCenter Server Appliance 6 (VCSA)

If you’re running the Appliance version of vCenter 6 at some stage you may want console access via SSH.  When you install VCSA 6 for the first time you have the option during installation to enable SSH.  Depending on your security stance you may have left SSH off and now you want it on.

There are a few different methods for enabling SSH on VCSA.  The below two methods both use the web client.

* If you’re looking for the process on vCenter 7 please click here

Method 1.
Directly enabling SSH in the Web Client.

This method is probably the easiest and quickest way.  The settings just happen to be in a non-intuitive location.

On the Home screen of the Web Client select Administration -> System Configuration

enable_ssh-000182

Select Nodes and right click on your vCenter server.

enable_ssh-000179

Select Edit Settings

enable_ssh-000181

Select the Checkbox Enable SSH login

enable_ssh-000180

Click OK.

You should now be able to SSH to the vCenter name or IP.

Method 2.
Enabling SSH via the Remote Console.

Navigate to your vCenter Appliance VM.  Click on Launch Remote Console.

enable_ssh-000184

Press ALT + F1 to get a login TTY session and login as root

enable_ssh-000183

Run the below commands to enable SSH.  ssh.get shows the current status.  ssh.set allows you to change the state of SSH.  Use ‘false’ instead of true to disable SSH.

Command> ssh.get
Enabled: False
Command> ssh.set --enabled true
Command> ssh.get
Enabled: True
Command>

The above methods takes effect immediately, no need to reboot.  When disabling SSH, current sessions stay active and don’t end.  So if someone has an open SSH session they won’t be kicked out until they logoff or their session times out.

References

VMware vCenter 6 Documentation
Edit Access Settings to the vCenter Server Appliance

2 thoughts on “Enable SSH on vCenter Server Appliance 6 (VCSA)”

Leave a Reply

Your email address will not be published. Required fields are marked *