Change and recover cloud server password
You can view the password for the root user in control panels under Cloud platform → Servers → server page → tab Console → field Password.
If you have forgotten or lost your password, you can change in the control panel.
If authorization with a new password doesn't work or you have trouble changing it, reset your password through the Rescue recovery and diagnostic mode.
Change password
- В control panels go to Cloud platform → Servers.
- Open the server page → tab Console.
- Click Generate a new.
Error when changing the password
If an error occurs during password generation Unable to set password on instance
, 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 a cloud server in Rescue mode through the console in the control panel or 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 an error occurs when changing the root directory No root-device specified
mount the disk partitions.
-
Connect to the cloud server in Rescue mode through the console in the control panel or 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>
и<block_uuid_1>
— 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 through the console in the control panel or 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 partition of the disk with the OS in the directory
/mnt
that you created in step 3:ntfs-3g /dev/sda4 /mnt
Here.
sda4
— the disk partition where the operating system resides. -
Go to the directory
/mnt/Windows/System32/config/
:cd /mnt/Windows/System32/config/
-
Open the user list and copy the user's RID
Administrator
:chntpw -l SAM
-
Switch to the account editing mode:
chntpw -u 0x<rid> SAM
Specify
<rid>
— 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 answer, in the column
LOCK
the Administrator user will see*BLANK*
:| RID -|---------- Username -------------| Admin?|- Lock? - |
| 01f4 | Administrator | ADMIN | *BLANK* | -
Exit Rescue mode. The server will automatically reboot.
-
Connect to a cloud server in Rescue mode through the console in the control panel or RDP. After resetting the password, the first connection can be made without entering the password.
-
Set a new password on the server. To do this, go to Settings → Accounts → Sign-in Options.
-
In the block Password click Add.
-
Enter a new password.
-
Click OK.