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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

136 views 17 7
Join discussion

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