Reset and recover a dedicated server password
You can view the root password 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 moment the OS installation, reinstallation, or configuration change starts.
If you have forgotten or lost your password, you can recover it using recovery and diagnostic modes:
- for Linux and Windows servers — restore the server password in Rescue;
- for Windows servers — restore the server password in WinPE.
You cannot recover the password for macOS servers. 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 KVM console or via SSH.
-
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 you mounted the file system manually using the
mountcommand, synchronize the data:sync -
Exit the environment:
exit -
If you mounted the file system manually using the
mountcommand, unmount the file system:umount /dev/<partition> /mntSpecify
<partition>— the disk partition you mounted the file system to 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 to the one that was set before changing the server boot template.
Restore the server password in WinPE
-
Connect to the server in WinPE mode via KVM console or via VNC.
-
Run the NTPWEdit password editing utility.
-
Ensure that the Path to SAM file field contains the path to the
SAMfile — this is the Security Account Manager file. -
Click Open.
-
Select an 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 or 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 to the one that was set before changing the server boot template.