Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Doctl asks for root password when SSH-ing into droplet
I’m setting up a droplet using Doctl, like so:
doctl compute droplet create DROPLET_NAME --size 2gb --image centos-7-x64 \ --region tor1 --ssh-keys FINGERPRINT --enable-private-networking
but when I use
doctl compute ssh DROPLET_NAME, it asks me for the root password (since it’s trying to log in with the root account). Since I’ve just set up this droplet, I haven’t set the root password, so I can’t SSH into the droplet. That shouldn’t really matter, though, because I want to use the key-based authentication I used to create the droplet.
Why is it asking me for a password I don’t have? Is there a default password, or do I need to use the web interface to reset the root password? What’s the point of Doctl, if I have to use the web interface anyway?
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.×