Permission denied (publickey) first root login

January 22, 2018 1.2k views
DigitalOcean Ubuntu 16.04

On my first login as root i get permission denied . I added my .pub content to the droplet and andded the identity to my ssh agent. Does it need some time before starting working?

1 Answer

My first guess would be that the authorized_keys file in your ~/.ssh folder may have the incorrect permissions set. Are you setting up SSH for the root user or another user?

Have another answer? Share your knowledge.