SSH to DigitalOcean Droplet getting Permission denied (publickey


#1

I don’t know why is this happening, i want to access to my server ‘DigitalOcean Droplet’ via SSH from my build, I have already added the Private Key (“SSH Permissions section on my project”) from my local system the same that I using to access to my Droplet and it is working on my local, and i made sure in my build config.yml add_ssh_keys fingerprints, i add as well the Droplet_id to key ~/.ssh/known_hosts to avoid blocking Shell from input.

this is what im getting when the command ‘ssh -v root@139.59.93.68’ runs in my build

debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
**debug1: Offering RSA public key: **
debug1: Authentications that can continue: publickey
**debug1: Offering RSA public key: **
debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/circleci/.ssh/id_rsa_3e25ba9a387f956444c546f10fd187f9
debug1: Authentications that can continue: publickey
debug1: No more authentication methods to try.
Permission denied (publickey).


#2

SSH keys are sometimes a bit of a fiddle. What I’d do is to run a Circle build with the SSH option, so you can try SSHing from there in a console.


#3