How Do I ssh With Non Root User??

Posted April 23, 2020 1.3k views
Ubuntu 16.04

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:

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

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.

Submit an Answer
1 answer

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.


  • I can’t show you the file because I can’t get into the server anymore…

    I am using ssh-key authentication (should be obvious since I’m asking about ssh keys. Lol)