Friday, April 22, 2022

How to reset the lost or forgotten root password in vCenter Server ?

 Process to Reset the Root Password in VCSA:

  1. Connect SSH to VCSA 6.7 and login using administrator@vsphere.local where vsphere.local is your default SSO Domain. ​​​​​
  1. If first time logging in, enable shell then enter shell.
  • shell.set --enable true
  • shell
Use the commands to enable the shell. shell shell.set --enable true shell
  1. Once in shell as sso-user, run the below command to change to root shell.
  • sudo -i
  • Alternately, you could use the command: sudo passwd root
  1. Then once in root shell, run passwd to change the root password.
  • passwd
Use the passwd command to reset the root password
  1. Now you can exit the session by running the exit or logout command and then log in through a new SSH session using your root account with updated password. Alternatively, you could run the su command in order to be prompted for the root password and get access as root.

No comments:

Post a Comment