Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,466,890
Community Members
 
Community Events
176
Community Groups

Pipeline with ssh submodule failing git@bitbucket.org: Permission denied (publickey)

I have a private repo which is including an open source repo as a submodule. (I am owner of both)

The pipeline fails 

 

+ git submodule update --init --recursive
Submodule 'archdef' (git@bitbucket.org:andytomlin/archdef.git) registered for path 'archdef'
Cloning into '/opt/atlassian/pipelines/agent/build/archdef'...
Warning: Permanently added the RSA host key for IP address '18.205.93.0' to the list of known hosts.
git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@bitbucket.org:andytomlin/archdef.git' into submodule path '/opt/atlassian/pipelines/agent/build/archdef' failed
Failed to clone 'archdef'. Retry scheduled
Cloning into '/opt/atlassian/pipelines/agent/build/archdef'...
Warning: Permanently added the RSA host key for IP address '18.205.93.1' to the list of known hosts.
git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@bitbucket.org:andytomlin/archdef.git' into submodule path '/opt/atlassian/pipelines/agent/build/archdef' failed
Failed to clone 'archdef' a second time, aborting

 

Suggestions?

1 answer

1 accepted

0 votes
Answer accepted

Nevermind, figured out I needed to add an ssh key to the pipeline

Hi Andy. You added ssh public key of your open source repo and added it to Access keys in private one? I did it like that and still getting this error

No, other way round. I added pipelines key to my open source repo. ie my pipeline now has a key recognized by the open source repo. I found this link useful https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events