Forums

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

Not able to clone Bitbucket repository using SSH key

patelpreksha March 20, 2022

Hi,

 

We are facing an issue when trying to clone the Bitbucket repository from Squiz Matrix. I am getting following error:

 

Error occurred when running git command "/usr/bin/git ls-remote 'Bitbucket_repo'": fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.

 

The SSH key from Squiz is added to the Bitbucket repository access keys so that it can read the Bitbucket repository from Squiz.

 

$repo/admin/access-keys/ (where $repo is replaced with the top-level URL of your repository. For example, https://bitbucket.org/user/repo)

 

Any idea what could be the issue? Is there any Firewall to Bitbucket which is causing the issue?

 

This is high priority for us to setup the repo to start the project work. So any help would be appreciated.

 

Thanks,

Preksha 

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 21, 2022

Hi @patelpreksha 

Welcome to the community!

I am not familiar with how "Squiz Matrix" works, but just to confirm you are copying the SSH key from Squiz matrix and adding it on repositories A, then you try to clone from Squiz matrix for repositories A?

If yes, then I believe Squiz matrix is not using the correct SSH key to clone hence you are getting the permission error. You may need to check if the SSH is configured correctly for the Squiz matrix.

If you are not cloning repositories A and instead of cloning repositories B then it's expected because you added the SSH key on repositories A and you can only access that. If you want to access all other repositories under your WOrkspace. then you'll need to navigate into Workspace settings > SSH keys and add the ssh keys here so that it has access to all repositories under your Workspace.

I hope this helps.

Cheers,

Syahrul

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events