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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.