Question

Unable to reset password for a Ubuntu 14.04 image

Posted February 16, 2015 2.7k views

Hello folks,

I have been trying to gain access to my new droplet. However, after the initial password reset, it just wouldn’t let me in. Here are the things I am doing:

  1. Create a droplet
  2. SSH to it and use the password received in the email to login. A prompt to reset the password comes up.
  3. Enter the new password. It automatically disconnects.
  4. Attempt to login with the new password.

It is not accepting the new password on step 4.

Am I supposed to do something else or something more?

EDIT: Resetting the password isn’t helping either.

Regards

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
3 answers

I believe I know where you are running into trouble. When you log into your droplet for the first time with your temporary password you are prompted first to confirm your current password and only then will you be prompted twice for a new password. If you fail to enter your current password in that first prompt you are disconnected from the session without any change having been made.

  • Indeed. That was what was happening. I had also raised a ticket and they said the same thing. I was forgetting to enter the current password.

    So I forgot to come here and thank you ryan. I guess this answer will help other unaware users like myself. :)

    • So if you don’t know your current password what do you do?

      • The current password, when logging into your droplet for the first time is emailed to the email address on your account unless you enabled key-based authentication for your droplet. If you are using key-based authentication then you won’t see this prompt and there is no default root password.

Hello there,

If you’re unable to access your droplet you can try to reset the root password and then check your email and access the droplet via the web console.

You can reset your root password for your account. Navigate to the control panel. From the project, the Droplet is in, or from the main navigation’s Droplets page, locate the Droplet. Click the Droplet’s name to open its detail page, then select Access in the left navigation.

Click Reset Root Password to reset the Droplet’s password. You will receive an email containing the Droplet’s temporary password.

Note: Some operating systems use internally-managed passwords, which means you cannot reset the root password from the control panel. In these cases, you’ll see the following message in the Reset root password section:

Once you have received your new password you can either ssh to the droplet using your ssh client or access the droplet using the DigitalOcean console:

https://www.digitalocean.com/docs/droplets/resources/console/

Log In with the Console

From the DigitalOcean Control Panel, first click the name of the Droplet you want to access, then select Access from the left navigation. Click the Launch Console button to open a web-based console session.

When the console opens, click the console screen and press ENTER to ensure that the login prompt has focus. At the login prompt, enter the user you want to log in as. This is typically the root user or a user configured with sudo privileges.

When prompted, enter the password associated with the account. For security purposes, your password will not be displayed on the screen as you type or paste it into the command line.

Once you’ve entered the password, press ENTER. If this is the first time you’ve logged in after resetting the root password through the control panel, you are prompted to enter the password again, then asked to choose a new password.

Once you’ve successfully entered your credentials you should be logged in to your Droplet.

Hope that helps!
Regards,
Alex