My job consists of source checkout, incrementing version and pushing back to repository. Repository config consists of ssh private key and passphrase. Source code checkout goes ok, but pushing back fails with:
Permission denied (publickey).
What I have doen so far:
1) Public client is attached to github account.
2) Correctness of passphrase have been checked several times.
3) I've debugged ssh command connections with:
ssh -vT server
and received:
debug1: Next authentication method: publickey
debug1: Trying private key: /home/bamboo/.ssh/id_rsa
debug1: Trying private key: /home/bamboo/.ssh/id_dsa
debug1: Trying private key: /home/bamboo/.ssh/id_ecdsa
debug1: No more authentication methods to try.
2Permission denied (publickey).
which means that git or ssh command don't use key provided in repository config.
Maybe someone have faced with such an issue and have resolved it?