logo

Permission denied (publickey) Digital Ocean

Today I redeemed Digital Ocean’s offer from the GitHub student pack, which gave me 100$ worth of credit for the next one year, which will be enough for me to learn self-hosting. I created a basic droplet using a non-root user and generated an ssh-key for login; however, I was getting an error “root@ipaddress: Permission denied (publickey).” After reading a lot of blogs yet, I was not able to find the solution.