Change and recover cloud server password
You can view the root user password in the control panel: from the top menu, click Products → Cloud Servers → server page → Console tab → Password field.
If you have forgotten or lost your password, you can change it in the control panel.
If authorization with the new password does not work or you have trouble changing it, recover the password via Rescue recovery and diagnostics mode.
Change password
- In the control panel, on the top menu, click Products and select Cloud Servers.
- Open the server page → Console tab.
- Click Generate new.
Error when changing password
If an error Unable to set password on instance occurs during password generation, perform a soft reboot of the cloud server.
The error may occur due to the small size of the server disk. The disk memory is occupied by the log journal, which makes the required password change operations unavailable. After restarting the server, some logs are deleted and space becomes available on the disk.
Recover password
Linux
Windows
-
Connect to the cloud server in Rescue mode via the console in the control panel or via SSH.
-
Change the OS root directory:
infiltrate-root -
Change the password for the root user:
passwd root -
Enter the new password twice. The password will not be displayed in the command line.
-
Wait for confirmation that the password has been changed:
passwd: password updated successfully -
Exit Rescue mode. The server will restart automatically.
Error when changing directory
If an error No root-device specified occurs when changing the root directory, mount the disk partitions.
-
Connect to the cloud server in Rescue mode via the console in the control panel or via SSH.
-
View the disk file system and copy the partition IDs:
fdisk -l -
Mount all disk partitions:
infiltrate-root <block_uuid_1>infiltrate-root <block_uuid_2>Specify
<block_uuid_1>and<block_uuid_1>— the IDs of the disk partitions you copied in step 3. -
Exit Rescue mode. The server will restart automatically.