Permission denied (publickey).
It’s been a while I created a new Droplet in DO and I was confused why this happened, because last time this didn’t happen. But after Googling a bit, I figured out a simple way to overcome this error. Here is our solution:
Open your DigitalOcean account and go to your Droplet.
Go to Access > Reset root password. You’ll get a new password in a while. Copy it.
Launch the “Console” access and enter the login details. Enter “root” and the password you got in the email. You can copy/paste it I guess.
PasswordAuthenticationand change the value from
It should look like this. Save this file.
service ssh reload
That’s all. Now you can go to your SSH client and log in as
Do let us know if you have any queries. Thank you!