Skip to main content
Change and recover cloud server password

Change and recover cloud server password

You can view the password for the root user in the control panel:In the top menu, click ProductsCloud 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

  1. In the dashboard, on the top menu, click Products and select Cloud Servers.
  2. Open the server page → Console tab.
  3. 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

  1. Boot the server into Rescue recovery and diagnostic mode.

  2. Connect to the cloud server in Rescue mode via the console in the Control Panel or via SSH.

  3. Change the root directory of the OS:

    infiltrate-root
  4. Change the password for the root user:

    passwd root
  5. Enter the new password twice. The password will not be displayed on the command line.

  6. Wait for a response that the password has been changed:

    passwd: password updated successfully
  7. 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.

  1. Boot the server into Rescue recovery and diagnostic mode.

  2. Connect to the cloud server in Rescue mode via the console in the Control Panel or via SSH.

  3. Look at the disk file system and copy the partition IDs:

    fdisk -l
  4. 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.

  5. Exit Rescue mode. The server will automatically reboot.