Question

Questions regarding the technical specifics of adding SSH on creation.

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”?


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.

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