Deployment - fatal: Authentication failed

Locally, pull/push and all other git commands work as expected. Although during deployment (Capistrano) I get "fatal: Authentication failed"
I have tried variations of ssh and https:
ssh://git@bitbucket.org/user/repo.git
git@bitbucket.org:user/repo.git
https://user:password@bitbucket.org/user/repo.git
https://user@bitbucket.org/user/repo.git
When prompted for user name and password, details are entered correctly, but the authentication fails. SSH keys have been added to bitbucket user account and a read only key has been added to the deployment keys which has made no difference in the authentication issue.
Is there some OS related issue here, perhaps cURL?

4 answers

1 accepted

I had two remote git hosts, realised Capistrano was explicitly calling "origin" during the final stages. Fixed by manually editing git config.

git version 1.7.2.5

Glad you got this sorted. In the future, if you run into problems we have this documentation:

https://confluence.atlassian.com/display/BITBUCKET/Troubleshooting+SSH+Issues

Glad you got this sorted. In the future, if you run into problems we have this documentation:

https://confluence.atlassian.com/display/BITBUCKET/Troubleshooting+SSH+Issues

Thanks for the link, but this in the end was purely an issue with git configuration not with SSH.

Yes, I understood it was your configuration. I should have been more specific, if you have SSH problems --- since you started your troubleshooting with that assumption, the page might have helped you rule SSH faster.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,747 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you