Why am I being asked for the current UNIX password when logging in with SSH?


I’m really very new to all of this. I’ve set up a new droplet for discourse and am trying to get access to it.

I followed best practices and set up and SSH using Putty on my Windows OS computer. That all seems to work fine.

The problem is after I’ve logged in the system asks me for the current UNIX password for root so that I can set up a new one. From what I understand if I’ve set up SSH I shouldn’t need a password. Is that right?

I did a root password reset on the droplet yesterday but the password that was emailed to me doesn’t work. The window just closes which I assume means incorrect password.

I’m not too sure what’s going on because all of the help guides I’ve read say this shouldn’t be happening.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


If you are using SSH by password instead of key, you will see this. What this is, it’s the Linux way of handling a password that has expired. When we set a password for you, we immediately set it to expire so that there exists no plain text record of the password later. Once you enter your password that first time, you see it follow up asking for you to repeat the current password. After you enter it again there, it then prompts you twice for the new password.

Typically when there is a failure at the current password prompt, this is a case of user error. I don’t want to say that it always is, I just want you to be on guard for this as anything else is so uncommon that you should reconsider user error multiple times before going further. It isn’t likely that you’re just doing something obviously wrong, it’s probably subtle and very easy to miss. You may be pasting something that you’re not realizing, like an extra space. Manually typing the password, difficult as it may be, can help to rule this out.

What I do personally, I paste the password into Notepad, tune the font size up, and then add a space between every 4 characters. This way I can focus on reading and typing the password 4 characters at a time without losing my place.

If that still fails, and this is a new droplet, I would recommend creating a new one before troubleshooting further. Something like an immutable shadow file could cause this, and how that occurred at such an early stage would be an interesting topic. If user error is totally ruled out and it continues, there is something wrong with the OS on the droplet and theorizing as to what that might be could prove a difficult task.