Can't SSH into server as newly created user (Permission denied (publickey)

I followed this guide and I still get the error: Permission denied (publickey)

How can I create a new user inside my Ubuntu droplet with sudo access that I can access via ssh?


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.

Site Moderator
Site Moderator badge
September 21, 2022

Hello @thomasparfitt

Did you upload the ssh-key to the droplet?

You can check our article on How to Upload an SSH Public Key to an Existing Droplet

You can check this article on How to Add/Delete users


Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up