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

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

I cannot check out submodules using SSH in Windows Edited

Bamboo is able to talk to my Bitbucket server and clone the main repository using the automatically generated SSH key (shown under "advanced settings")

However, after adding this same public key to the various submodules in bitbucket, and to the top-level project as well, but Bamboo still tells me it does not have permission to access the submodules during checkout.  

I have also tried setting my HOME variable to C:\atlassian\bamboo-home and putting an id_rsa key pair I generated myself into C:\atlassian\bamboo-home\.ssh

I have also tried putting them in various USERPROFILE folders, including the admin user profile which is at C:\Windows\system32\config

I have also tried explicity pointing GIT_SSH_COMMAND to "ssh -i C:\atlassian\bamboo-home\.ssh\id_rsa"

Nothing works.

The only thing that works for me is to check out the submodules using a separate script task that runs after the main repository checkout is complete. In this script, I explicitly load my own keys using OpenSSH.

Where does Bamboo get its SSH keys for submodule checkout?  Why isn't it using the same key it used for the main repository?

```

19-Apr-2019 18:53:50git@bitbucket.<mycompany>.com: Permission denied (publickey).
19-Apr-2019 18:53:50fatal: Could not read from remote repository.
19-Apr-2019 18:53:50 
19-Apr-2019 18:53:50Please make sure you have the correct access rights
19-Apr-2019 18:53:50and the repository exists.

 

1 answer

0 votes

Hello @Jack Zylkin :)

Bamboo uses a proxy internally to handle Git repositories. In your case, you seem to be getting troubles with the submodules authentication coming from the same Bitbucket server, correct?

If that's is true, do you have the submodules repositories configured with absolute url? Could you try with relative urls?

Did that help you?

Victor

I do have them configured with absolute URLs.  I did not realize you could make them relative.

And yes it is the same server.  I would really prefer not to use relative submodule paths, but I can try it.

Did you have a chance to try @Jack Zylkin ? Did it succeed?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

694 views 1 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you