vSphere VCSA 6.x – Enabling Bash Shell

This post was a result of requiring access to the VCSA BASH Shell console in order to perform such functions as certificate-manager (/usr/lib/vmware-vmca/bin/certificate-manager).

The default Shell access when you initially login to the VCSA via SSH is the basic Appliance Shell:

vcsa-cert-1

In order to access the BASH Shell console you will need to execute the following commands:

shell.set --enabled true
This will enable BASH Shell for the default of 3600 seconds as can be viewed by running: shell.get

vcsa-cert-8

If you wish to extend the timeout to the maximum of 86400 seconds / 1 day then use the following cmd:

shell.set --enabled true --timeout 86400

vcsa-cert-9

Having run the enable cmd you may now type the Shell cmd and hit enter to activate the BASH Shell session, an initial warning shall be displayed:

vcsa-cert-4

If you wish to make BASH Shell the default Shell for root then run the command:

chsh -s /bin/bash root
vcsa-cert-5

vcsa-cert-6

If you wish to revert back to the default Appliance Shell then run the following command followed by a logout and login for the changes to take affect:

chsh -s /bin/appliancesh root

vcsa-cert-10vcsa-cert-11

 

 

One thought on “vSphere VCSA 6.x – Enabling Bash Shell

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s