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

This widget could not be displayed.

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

This widget could not be displayed.

git version 1.7.2.5

This widget could not be displayed.

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

This widget could not be displayed.

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
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,312 views 8 11
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