One of the problems i face when initially trying to access one of my servers hosted in Digital Ocean is SSH.
Permission denied (publickey).
This stackoverflow answer was vey helpful.
ssh root@address -vvvto see full logs
- configure a section for each server like so
Host SERVERNAME Hostname ip-or-domain-of-server User USERNAME PubKeyAuthentication yes IdentitiesOnly yes IdentityFile ./path/to/key
IdentitiesOnly yesto limit the authentication to use the single, specified key.