Change and recover cloud server password
You can view the password for the root user in the control panel: in the top menu, click Products → Cloud Servers → server page → Console tab → Password field.
If you have forgotten or lost the password, you can change it in the control panel.
If authorization with the new password does not work or you have problems changing it, recover the password using the Rescue recovery and diagnostics mode.
Change password
- In the control panel, in the top menu, click Products and select Cloud Servers.
- Go to the server page → Console tab.
- Click Generate new.
Error when changing password
If the Unable to set password on instance error occurs while generating the password, 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 control panel console 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 reboot automatically.
Error when changing directory
If the No root-device specified error occurs when changing the root directory, mount the disk partitions.
-
Connect to the cloud server in Rescue mode via the control panel console 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 disk partition IDs that you copied in step 3. -
Exit Rescue mode. The server will reboot automatically.