Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Error 'git@bitbucket.org: Permission denied (publickey)' on GitBash

aaroncarternorcott
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!
September 2, 2019

I am trying to get a recovery code through SSH and get the error 'git@bitbucket.org: Permission denied (publickey)' when I run the command 

ssh git@bitbucket.org recovery_codes

 Is there an easy way around this?

Thanks

1 answer

1 vote
Rafael Pinto Sperafico
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.
September 2, 2019

Hi @aaroncarternorcott ,

Where you working with Bitbucket repositories using SSH protocol previously? Perhaps the sshkey you are using is not the one available on BItbucket. If you know what the SSH key is, you could specify it in the ssh command:

ssh -i ~/.ssh/id_rsa_example git@bitbucket.org recovery_codes

More information on Two-step verification documentation.

Kind regards,
Rafael

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events