Guides - Reset the Root Password on a Compute Instance

Linux virtual machines equipped with a tailored set of resources designed to run any cloud-based workload.

Create a Linode account to try this guide with a $ credit.
This credit will be applied to any valid services used during your first  days.

All Compute Instances that are deployed within a supported distribution image allow you to reset the root password for the installed Linux system. This is useful if you ever lock yourself out of your instance’s root account or are simply rotating your password for security.

  1. Log in to the 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.

  3. Navigate to the Settings tab.

  4. Scroll down to the Reset Root Password section.

  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.

Now you can use the new work when logging in as root on your Compute Instance’s installed system. See Connecting to Your Compute Instance via SSH for more information about connecting. If you are unable to connect with the root credentials via SSH, try connecting with Lish instead. If you are able to connect via Lish but not SSH, you may need to troubleshoot your SSH configuration and firewall rules.

This page was originally published on

Your Feedback Is Important

Let us know if this guide was helpful to you.