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

May 30, 2015 6.5k views

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.

2 Answers

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?

Have another answer? Share your knowledge.