michell
By:
michell

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

September 14, 2014 1.4k 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?

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
Have another answer? Share your knowledge.