how to set own desired root for droplet via api ?

August 16, 2013 5.2k views
i have searched http://api.digitalocean.com couldn't find it.
3 Answers
For the record... Sending a plain text password through email is just as insecure if not more insecure than sending a password to an API over SSL... Just saying.
how to set own desired root password for droplet via api ?
We do not support this as it is not secure. You should use SSH keys instead:

https://www.digitalocean.com/community/articles/how-to-use-ssh-keys-with-digitalocean-droplets

https://api.digitalocean.com/droplets/new
https://api.digitalocean.com/droplets/new?...&ssh_key_ids=[ssh_key_id1],[ssh_key_id2]


  • ...

  • ssh_key_ids Optional, Numeric CSV, comma separated list of ssh_key_ids that you would like to be added to the server

  • ...

by Etel Sverdlov
This guide is for Mac OS X and Linux users. Learn how to use SSH Keys with DigitalOcean Droplets.
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!