SSH login public key denied

October 25, 2017 268 views

Hello everyone, it's my first time working with Digital Ocean. I've already created my droplet with ubuntu 16, created my SSH keys on Mac and included in the droplet. But I can't login using SSH without including the private key path:

ssh root@DROPLET_IP -i /path/to/private_key

If the path to private key is included I can log in, otherwise the public key is denied.

Can anyone help me?

Be the first one to answer this question.