Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,362,083
Community Members
 
Community Events
168
Community Groups

Bamboo permission denied error on cloning submodule via ssh

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

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-- 

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

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-- 

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events