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

Bamboo Github Enterprise Permission denied (publickey)

Anil Unnikrishnan February 13, 2020

I have installed Bamboo on a local machine and I trying to integrate it with Github Enterprise. I've done with the following:

1. Added trusted keys for Github Enterprise URL

2. Created shared credentials for SSH

3. Used Linked Repositories (Test Connection returns "Connection Successful")

But when I fetch my repo using my build plan, I get the following error:


fatal: clone of 'git@<url>/repo.git' into submodule path '<path to local bamboo>/xml-data/build-dir/DEV-DEV-JOB1/...'failed
Failed to clone '<repo>' a second time, aborting
Cloning into '<path to local bamboo>/xml-data/build-dir/DEV-DEV-JOB1/...'...
Warning: Permanently added '<github url + IP>' (ECDSA) to the list of known hosts.
git@<github url>: Permission denied (publickey).


The repo has submodules. (I have enabled that in the repository settings - Advanced Options - Use submodules)


I tried cloning the repository outside bamboo on the same machine (same SSH keys) and that works perfectly well.


Anything else I need to do to get this to work?


0 answers

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events