This article provides vSphere Administrators steps to toggle between default shells available on the vCenter Server Appliance (vCSA).
VMware vCenter Server Appliance 6.0.x
VMware vCenter Server Appliance 6.5.x
VMware vCenter Server Appliance 6.7.x
VMware vCenter Server Appliance 7.0.x
VMware vCenter Server Appliance 8.0.x
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 rootPS: This is a Permanent Switch
Changes your default shell for all future logins.
For Temporary Switch
Run the below command to switch to 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