Bamboo permission denied error on cloning submodule via ssh

Jyoti Khera August 23, 2022

Hi Guys,

Can anyone help to find out the solution for cloning submodules in Bamboo as I am getting error :

Submodules cloning over ssh giving permission denied and not using the ssh key of main repo.

23-Aug-2022 06:54:27 Repository not found
23-Aug-2022 06:54:27 The requested repository does not exist, or you do not have permission to access it.
23-Aug-2022 06:54:27 fatal: Could not read from remote repository.
23-Aug-2022 06:54:27 Please make sure you have the correct access rights
23-Aug-2022 06:54:27 and the repository exists.

1 answer

0 votes
Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 23, 2022

Hello @Jyoti Khera, Welcome to Atlassian Community!

The best way to deal with submodules is upgrading Bamboo to at least 8.1.1 (we recommend 8.1.9 or 8.2.5 due to recent CVE) as documented on this bug:

You can find some alternative strategies in the following KB articles too:

Sincerely,

Eduardo Alvarenga
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful-- 

Jyoti Khera August 31, 2022

Hi @Eduardo Alvarenga ,

We have upgraded the Bamboo to 8.2.5 .

Could you please guide to next step. How to clone submodule and avoid "permission denied" error during fetch over ssh.

Thanks

Jyoti Khera

Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 31, 2022

Hello @Jyoti Khera

You need to select "Use submodules" under "Advanced options" on your Repository settings. That will also enable the "SSH key applies to submodules" option which you can leave on to use the same SSH key you are using on the main repository.

More information:

Cheers,

 

Eduardo Alvarenga
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful-- 

Bhagyalaxmi July 26, 2023

Hello @Eduardo Alvarenga 

This does not work for me. I am using Bamboo 9.2.

 

Thanks,

Bhagya

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events