Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

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!
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.
You could login as the root user on the droplet. After this create a new user (on CentOS: useradd username). After you’ve created the user, login as this user (can be done directly from root: su username).
Now edit the file: ~/.ssh/authorized_keys and paste the public key in this file. Save it and make sure you chmod it to 600. Now you could login as the newly created user with the SSH key.
If you’re unable to login, please check the /var/log/secure login (as the root user) to see why you can’t login. If it says something about not in the AllowUsers, then: nano /etc/ssh/sshd_config and at the end of the file, you could add the user: AllowUser username. Make sure to restart ssh.