This article provides vSphere Administrators with steps to toggle between the default shells available on the vCenter Server Appliance (vCSA).
VMware vCenter Server Appliance
Currently, the vCSA is bundled with these supported shells:
Switching the vCenter Server Appliance to BASH Shell
shell.set --enabled trueroot:chsh -s /bin/bash root
shell and press Enter.root:chsh -s /bin/bash rootSwitching the vCenter Server Appliance to Appliance Shell
chsh -s /bin/appliancesh rootNote: This is a permanent switch as it will change the default shell for all future logins.
For Temporary Switch
Run the command below to switch to the appliance shell one time/bin/appliancesh
Opens the shell immediately; exit returns you to BASH.
To perform the shell update in one line:
shell "/bin/bash" "-c" "chsh -s /bin/bash root"Note: This KB explains how to enable SSH on VCSA and also login issues with VCSA.
If you see the error message Access Denied when logging into an SSH session, see "Access Denied" error when using SSH to login to the appliance