Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.
×Hi,
I setup 2FA on my account, now I can't push changes via git CLI using ssh, even though I have a ssh key setup in bitbucket. The error:
git@bitbucket.org: Permission denied (publickey)
The help page I found:
https://support.atlassian.com/bitbucket-cloud/docs/configure-ssh-and-two-step-verification/
mentions a 3rd party program but implied that wasn't necessary if using an ssh key. What am I missing?
thanks, Phil
Hi @pcrooker
That error message implies that your public SSH key configured locally does not match the public SSH key configured in your Personal Settings - it does not relate to 2FA.
I would suggest printing the public SSH key's stored in ~/.ssh/ and comparing them to the SSH key you've configured in Personal Settings > SSH Keys:
cat ~/.ssh/id_rsa.pub
If you still encounter issues, please let us know your timezone so we can raise a support ticket on your behalf - as we'll need to see verbose logs (which wouldn't be appropriate to share in a public forum such as community).
Cheers!
- Ben (Bitbucket Cloud Support)
You're right. I've put in a new key and voila. I appear to have two accounts w the same name (I'll try to sort this out...), one in bitbucket and one in atlassian.com, so I had logged in the old bitbucket account which has an old ssl key. Thanks for the help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.