Forums

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

Cannot access Bitbucket repo remotely using SSH

cjwilde1
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!
May 10, 2020 edited

I just added a Workspace, Project, and empty repository under Bitbucket.  My goal is to push my local repository to Bitbucket, but the SSH keys are not cooperating.  When I try "git clone git@bitbucket.org:Workspace/repository", the command fails with the message

Forbidden
fatal: Could not read from remote repository.

I created a new SSH key on my local machine and assigned it to my Personal account.  Git clone still failed.  Deleted it from Personal and assigned it to my Workspace.  Git clone still failed.  Deleted it from Workspace and assigned it to repository.  Git clone still failed.  I tried assigning my old SSH key in each place, but Bitbucket told me the key was already added.

I can still access an old repository that uses the old SSH key.  When I run ssh -Tv git@bitbucket.org, I see that my original key in id_rsa was accepted.

I need help setting up the connection between bitbucket and my local machine for the new repository.

Note: If I use git clone https://bitbucket.org/Workspace/repository, that works, although I have to provide my username and password.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events