Reset and recover a dedicated server password
You can view the password for the root user in the Control Panel: in the top menu, click Products → Dedicated Servers → Servers → server page → Operating System tab. The password is available for viewing for 24 hours from the start of the OS installation, reinstallation, or configuration change.
If you forgot or lost your password, you can recover it using recovery and diagnostic modes:
- for servers with Linux and Windows OS — recover server password in Rescue;
- for servers with Windows OS — recover server password in WinPE.
For servers with macOS, the password cannot be recovered. To continue using the server, create a ticket.
Restore the server password in Rescue
Ubuntu and Debian
CentOS
Windows
-
Connect to the server in Rescue mode via the KVM console or using the SSH protocol.
-
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 the confirmation that the password has been changed:
passwd: password updated successfully -
If the mount was performed manually using the
mountcommand, sync the data:sync -
Exit the environment:
exit -
If the mount was performed manually using the
mountcommand, unmount the file system:umount /dev/<partition> /mntSpecify
<partition>— the disk partition where you mounted the file system in step 3. -
Restore the previous server boot template or reboot the server from the OS. When rebooting the server from the OS, the boot template will automatically change back to the one set before changing the server boot template.
Restore the server password in WinPE
-
Connect to the server in WinPE mode via the KVM console or using the VNC protocol.
-
Launch the NTPWEdit password editing utility.
-
Make sure that the Path to SAM file field specifies the path to the
SAMfile — this is the Security Account Manager (SAM) file. -
Click Open.
-
Select the account. If the account is locked, unlock it by clicking Unlock.
-
Click Change password.
-
Enter a new password. If you set an empty password, you will not be able to connect via RDP and change the password using the
NTPWEditutility. -
Confirm the password.
-
Click OK.
-
Click Save changes.
-
Restore the previous server boot template or reboot the server from the OS. When rebooting the server from the OS, the boot template will automatically change back to the one set before changing the server boot template.