I'm a bit lost with the error I'm getting and I'm sure someone will probably know right away what is wrong. I think we had to add new public keys to github like a month ago so I suspect it is related to that.
If I'm ssh'd into the server and do (I have the correct public_key as I'm able to ssh in):
deploy@test:~/.ssh$ ssh -T email@example.com Permission denied (publickey). deploy@test:~/.ssh$
If I do:
deploy@test:~/.ssh$ ssh -vT firstname.lastname@example.org
.... debug1: sending SSH2_MSG_KEX_ECDH_INIT debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: Server host key: RSA xxxxxx debug1: Host 'github.com' is known and matches the RSA host key. debug1: Found key in /home/deploy/.ssh/known_hosts:1 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: Roaming not allowed by server 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: /home/deploy/.ssh/id_rsa debug1: Authentications that can continue: publickey debug1: Trying private key: /home/deploy/.ssh/id_dsa debug1: Trying private key: /home/deploy/.ssh/id_ecdsa debug1: No more authentication methods to try. Permission denied (publickey). deploy@test:~$ ls
Do I need to delete out my authorized_keys or known_hosts?
I am using agent_forwarding as mentioned here: https://help.github.com/articles/deploying-with-capistrano which I think should obviate the need to have keys on server.
my local .ssh/config file
ServerAliveInterval 120 ServerAliveCountMax 3 Host staging.domain.com ForwardAgent yes Host github.com IdentityFile ~/.ssh/id_rsa.github