Login using ssh and password for new non root user.

Deepika Gunda
1 min readJun 24, 2020

I followed the steps to prep the new droplet created in digital ocean and you hit the username@IP: Permission denied (publickey) !

Photo by Sarah Kilian on Unsplash

I chose the 18.04 Ubuntu to be installed in my droplet, followed the steps in here to configure it . The issue came with not being able to login with the new user created.

Solution: At this point , I am able to login to the droplet using ssh root user.

I logged in and changed the file /etc/ssh/sshd_config . There is already an entry PasswordAuthentication no .

Edit it and make it yes. Save the file.

Reboot the droplet .

Once rebooted, I was able to login using ssh <newusername>@IP. There was a prompt for password . Key in your user’s password. And It worked!

Have a great day!

--

--

Deepika Gunda

I am a Software Engineer n Tech Enthusiast . You will see me publishing articles on Javascript, NodeJS and misc.