Question

How Do I ssh With Non Root User??

Hi. I just got the $5 server from Digital ocean with Ubuntu, and I can’t figure out how to shh into it with a non root user.

I followed this random user’s answer in the thread here: https://www.digitalocean.com/community/questions/how-to-enable-ssh-access-for-non-root-users

but then I couldn’t login with the root user nor the new user… 🤦‍♂️


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.

Hello, @DigitalJim

Could you please let me know which is the exact received error message when trying to access your droplet? Can you share the content of the /etc/ssh/sshd_config file?

Are you trying to access the droplet using ssh-key or using PasswordAuthentication ?

You can also access your droplet via the console from the DigitalOcean’s control panel and make sure that everything is running as it should. You can revert the made changes in case something went wrong in order to restore the access to your droplet.

Let me know how it goes.

Regards, Alex