Deployment - fatal: Authentication failed

Vinny April 17, 2013
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

1 vote
Answer accepted
Vinny April 17, 2013

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

0 votes
m
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 17, 2013

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

Vinny April 18, 2013

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

m
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 18, 2013

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.

0 votes
m
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 17, 2013

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

0 votes
Vinny April 17, 2013

git version 1.7.2.5

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events