Bitbucket Git Submodules with SSH Keys and valid permissions are NOT cloning

I have a valid id_rsa.pub ssh-key copied into my Bitbucket user settings. I can clone any top-level repo that I have access to.

I can also validate that my id_rsa.pub works by running:

ssh -vT git@bitbucket.org
[...]
Authenticated to bitbucket.org ([104.192.143.2]:22).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
logged in as **REDACTED**.

BUT when I clone a top-level repo with submodules and run:

git submodule update --init --recursive"

# I see many "Permission denied (publickey") messages to repos I also have permission to

Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I can clone my submodules over ssh individually, NO PROBLEM. Just when the top level repo attempts to update all the submodules, it fails. 

What is going on?

(((  I do not want to use https for submodules. )))

 

1 answer

0 votes

Hi Bartosz! Are you still experiencing this issue? If you are, please give us more info so we can continue helping you:

- Are you using Bitbucket Server or Cloud?

- Where are you cloning the repositories from? Where are you cloning them to?

Best regards,

Ana

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

638 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot