can't access root using ssh Permission denied (publickey)

August 8, 2017 123 views
DigitalOcean Ubuntu 16.04

I going through the tutorial for initial server setup
At step 4 I need to manually install the key, as it said in topic Add Public Key to New Remote User I need add the public key to a special file in the user's home directory, but when trying to access root again from my laptop terminal using ssh root@my_ip_address_domain it showing error Permission denied (publickey), I'm using ubuntu 16.04 and created droplets using ssh.. Sorry if this question is simple, this is my first time using server

1 comment
  • Some checks:

    • Did you restarted sshd service on your droplet?
    • Did you added your SSH key to your ssh agent through ssh-add ~/.ssh/id_rsa (on your computer)?
1 Answer

From your machine you have to copy content to your droplets ~/.ssh/authorized_keys file

Have another answer? Share your knowledge.