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

Git push auth failure

c ryan 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:
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
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 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 =

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

url =

Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events