When 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 experience these additional symptoms:
https://VC_IP:5480
) using same credentials is successful.Invalid Shell
/var/log/messages.log
file, you see entries similar to:YYYY-MM-DDTHH:MM:SS vc sshd[23037]: User root not allowed because shell /bin/bosh does not exist
VMware 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/passwd
For example:
...
root:x:0:0:root:/root:/bin/appliancesh
root: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:#1468577177
chsh -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