Report this

What is the reason for this report?

API: Created a droplet. What is its username and password?

Posted on May 30, 2015

I created an Ubuntu 14.04 droplet using the API. How do I log in? There doesn’t seem to be a way to specify a password when the droplet is created.



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!

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.

If you created a droplet without defining an SSH Key to use, you should get an email with the username (which will be “root”) and a generated password and IP, and when you login, you will have to change the password. If you defined a SSH Key for your droplet to use within the API, you wont receive an email, but you should get the IP back that you use to login with. If you have yet to receive an email, check your spam folder. It would normally take about 30 to 60 seconds from the time the droplet is being deploy for the email to be send, though it may be a delay if there is a backlog of events. If you have not gotten it, submit a ticket and inform them. You can also login to your account and reset the password (or do it via api if its possible) so it will resend.

Thanks much. I checked my email and you are indeed right. Which leads me to another question: How do I specify the SSH key using the API?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.