'SSH Permission denied (publickey) DigitalOcean Ubuntu [closed]

I can't seem to log in to my droplet on digitalocean.

When I try ssh [email protected] I get a Permission denied (publickey). I tried resetting the root password and logging in via the digitalocean droplet console, but it won't take the root login or password that was reset. Nor will it take the other username and password that I set up.

Everything was working fine yesterday, but when I started work today I ran into the Permission denied issue. So I'm not sure what changed to make this no longer work. I also checked my github keys to see if it hadn't been added, but my local machines key is there and correct. I've also tried adding the key to the droplet with ssh-copy-id [email protected], but got the same error.

Looking at the keys found when logging into the digitalocean website shows the correct key.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source