Logging in to vCenter Server through SSH fails with Access Denied error, set the default shell for the user to bash.
Access Denied"

You may also experience the following:
https://VC_IP:5480) using same credentials is successful.Invalid Shell/var/log/messages.log file, similar entries similar are seen:YYYY-MM-DDTHH:MM:SS vc sshd[23037]: User root not allowed because shell /bin/bosh does not existVMware vCenter Server 6.x
VMware vCenter Server 7.x
VMware vCenter Server 8.x
Follow these steps to verify if the issue is caused by an invalid shell configuration:
rw init=/bin/bash to the end of the line.mount -o remount,rw /cat /etc/passwdFor example:...root:x:0:0:root:/root:/bin/applianceshroot:x:0:0:root:/root:/bin/appliancesh. If this entry does not contain /root:/bin/appliancesh review the /root/.bash_history file to see if an invalid shell was set with this command:less /root/.bash_history
For example:#1468577177chsh -s "/bin/bosh" root
Note: In the example above the root user has incorrectly set the shell to "/bin/bosh". The line above is the timestamp of this event in epoch format.
reboot VCSA and press e
init=/bin/bash
f10 to continue bootingchsh -s /bin/bash root
reboot