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 forget or lose your password, you can change it in the control panel.
If authorization with a new password doesn't work or you have trouble changing it, recover the password through Rescue Recovery and Diagnostic Mode.
Change password
- In the dashboard, on the top menu, click Products and select Cloud Servers.
- Open the server page → Console tab.
- Click Generate New.
Error when changing the password
If the error Unable to set password on instance
occurs during password generation, perform a programmatic reboot of the cloud server.
The error may occur due to a small server disk capacity. The disk memory is occupied by the logs, so the required operations for changing the password are unavailable. After restarting the server, some of the logs are deleted and disk space is available.
Restore password
Linux
Windows
-
Connect to the cloud server in Rescue mode via the console in the Control Panel or via SSH.
-
Change the root directory of the OS:
infiltrate-root
-
Change the password for the root user:
passwd root
-
Enter the new password twice. The password will not be displayed on the command line.
-
Wait for a response that the password has been changed:
passwd: password updated successfully
-
Exit Rescue mode. The server will automatically reboot.
Error when changing the catalog
If a No root-device specified
error occurs while 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.
-
Look at 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_uuuid_1>
as the IDs of the disk partitions you copied in step 2. -
Exit Rescue mode. The server will automatically reboot.
-
Connect to the cloud server in Rescue mode via the console in the Control Panel or via RDP.
-
Create a directory to mount the disk partition:
mkdir /mnt
-
Look at the partition on the disk where the operating system resides — it's the partition with the larger volume:
fdisk -l
-
Mount the OS disk partition to the
/mnt
directory you created in step 3:ntfs-3g /dev/sda4 /mnt
Here
sda4
is the disk partition where the operating system resides. -
Navigate to the
/mnt/Windows/System32/config/
directory:cd /mnt/Windows/System32/config/
-
Open the user list and copy the RID of
the Administrator
user:chntpw -l SAM
-
Switch to the account editing mode:
chntpw -u 0x<rid> SAM
Specify
<rid>
is the RID of the Administrator user that you copied in step 7. -
To reset the password, select
Clear (blank) user password
. The items may differ in different versions of the program, in the example it is item 1:1
-
Close the file:
q
-
Confirm the changes:
y
-
Check that the password has been reset:
chntpw -l SAM
In the response, the Administrator user will see
*BLANK*
in theLOCK
column:| RID -|---------- Username -------------| Admin?|- Lock? - |
| 01f4 | Administrator | ADMIN | *BLANK* | -
Exit Rescue mode. The server will automatically reboot.
-
Connect to the cloud server in Rescue mode using the console in the Control Panel or via RDP. After resetting the password, you can make the first connection without entering a password.
-
Set a new password on the server. To do this, go to Settings → Accounts → Sign-in Options.
-
In the Password box, click Add.
-
Enter a new password.
-
Press OK.