By dannybarbier
When I create a droplet and add SSH keys during creation, does that assign that ssh key to root, or does it create a new user named whatever I made the ssh’s name?
If the former: What happens if I select two or more ssh keys on creation? Does it randomly pick one to assign to root and create a new user for the other?
If the latter, How do I connect to root? What access privileges does that new user get created with? What happens if I make the ssh key’s name “root”?
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!
When you create a droplet with SSH keys the SSH keys are placed under the root user.
There are no other users created and there are no SSH keys placed on any other users.
When you select multiple SSH keys during creation then all of the selected SSH keys are added under the root user.
If you name the SSH keys root it doesn’t matter, as that is just a label that you see in the control panel so that you can easier reference what keys you added. For example you can add a label of “Laptop” to specify this is a key stored on your laptop, or “Work Desktop”, etc, but it doesn’t affect how SSH keys operate or where they are placed as this is simply an easier way to categorize and manage your SSH keys on your account.
If you added the key then you can connect as root per usual and we have a great resource for you to get all of the details here: https://www.digitalocean.com/community/tutorials/how-to-use-ssh-keys-with-digitalocean-droplets
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.