How can I remove password after adding SSH key as I was set up originally................................................

Posted September 14, 2014 2.5k views

I originally up the droplet with an SSH key and no password. then I added a password hoping I could look at my files via FTP and of course that didn’t work.
I need to go back to having no password since this is for a class and that is the requirement

How can I have no password again?

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
1 answer

Your password was set to a random string when you created your droplet, but it wasn’t sent to you by email because you selected an SSH key. You can change root’s password to a random string by running:

echo "root:$(openssl rand -hex 18)" | chpasswd