Reset the root password on a Compute Instance

All Compute Instances deployed using an official distribution image provide the ability to reset the root password on the system. This is useful if you ever lock yourself out of your Compute Instance's root account or are simply rotating your password for security. Follow the instructions below to reset your root password:

  1. Log in to Cloud Manager, click the Linodes link in the sidebar, and select a Compute Instance from the list.

  2. Click the Power Off button in the upper right of the Compute Instance's dashboard or within the ellipsis menu. Wait until the Compute Instance has been fully powered off before continuing to the next step.

    Screenshot of a <<CLOUD_VM>> Details page with the Power Off button highlighted

  3. Navigate to the Settings tab.

  4. Scroll down to the Reset Root Password section.

    Screenshot of the Reset Root Password form

  5. Select your primary disk from the Disk dropdown menu.

  6. Enter a new password for the root user in the New Root Password field.

  7. Click Save to make the change.

  8. Click Power On button to turn on your Compute Instance.

You can now use this new password when logging in as the root user on your Compute Instance over SSH or Lish (Linode Shell). If you're able to log in as root using Lish but not SSH, there may be an issue with the SSH configuration, firewall rules, or other network issues. The following guides provide more troubleshooting steps: