Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Git push auth failure

c ryan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 23, 2023

I can't push to my own repo.

$ git push
remote: Login failed due to incorrect login credentials or method.
remote: If you are unsure of which login details or login method to use, visit:
remote: https://support.atlassian.com/bitbucket-cloud/docs/log-into-or-connect-to-bitbucket-cloud/
fatal: Authentication failed for ...

I have followed the steps to setup keys locally and in BB. ssh-add'd priv key and set in .ssh/config. The setup up the pub key in BB cloud.

From my git bash shell

$ ssh -T git@bitbucket.org
authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled

This is the last step in the docs, where do I go from here to debug the auth issue? I can't push via cli or sourcetree. 

 

 

1 answer

0 votes
c ryan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 23, 2023

Resolved, perhaps this is useful for others...

in .git/config the old origin entry was still there from a year ago, with username and password

[remote "origin"]
url = https://user:pw@bitbucket.org/blah/myrepo.git

Once I changed the URL to remove these it works fine. 

url = https://bitbucket.org/blah/myrepo.git

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events