Permission denied (publickey) first root login

Posted January 22, 2018 1.7k views
DigitalOceanUbuntu 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?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
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?