Question

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

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.


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.

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?

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.