Hi,
I am linking the git project repository in bamboo. Both of these applications are in same server. Now when I am going to add git repository it shows the below mentioned error.
"
Could not test connection. Please add your repository host SSH key to the list of trusted keys."
I have created ssh keys with my Git login credential say there name are XYZ and XYZ.pub. I have added the XYZ.pub in git as well as in bamboo in " Trusted Keys" option under Security. and then going to authenticate by using ssh private key i.e, XYZ. After that every time I clicked on the Test Connection it shows above mention error.
I am using Git 2.6.0 V
Bamboo 5.10.2 V
Any one can help me or suggest me any possible way to solve the issue?
Thanks in advance.
You need to add Git repo server host SSH key to the list of Trusted keys. See details in documentation https://confluence.atlassian.com/bamboo/managing-trusted-keys-800714520.html
Hi,
Thanks for the answer. I have already gone through the link and added the same ssh public key in the Trusted Key section what I also added in git repository. still I am getting this issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, it's different key. Execute command
ssh-keyscan localhost
It will print all SSH keys of server. You can add them to Trusted keys list
Another approach is to add repository without testing connection and start build. It will fail with error message. There will be Add key button at error box which allows you to add correct repository SSH key
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same setup and the same problem...On my system the "ssh-keyscan localhost" returns no results.
Also, I'm not seeing how to add the repository "Without testing".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Don't click "Test connection" button. Repo will be added to plan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So I've added my host SSH key to the list of trusted keys – I've tried just adding the thumbprint and I've also tried adding the key returned from:
`ssh-keyscan -p 7999 localhost`
Do I need to somehow add port number information to this public key? I'm not seeing any documentation on how to specify a port number in the trusted keys list or what format it's expecting for the public key.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, you don't need to add port. Can you try path with adding host key from error box?
To do it you need to add repository to your plan without clicking "Test connection" button. Then start plan. It will fail with message that host is not trusted. Error message will show Add key link which will add server host key to the list of Trusted keys
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
All I have is a "Save Repository" button. Then the error message just shows a generic message. See attached screenshot (sensitive fields obfuscated): I must be missing something.
ss_1.png
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You need to add the git machine into trusted hosts:
https://www.debian-administration.org/article/503/How_do_you_manage_your_SSH_host_keys
Basically you need to just add it like above.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Instead of RSA it is showing ECDSA.
The authenticity of host 'localhost (::1)' can't be established.
ECDSA key fingerprint is 45:f2:fa:8b:ca:a0:df:0e:fe:ae:56:1b:66:c7:f8:4f.
Are you sure you want to continue connecting (yes/no)?
What to do?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Answer yes. I think your current ssh is set to use ECDSA keys in this case so you should be fine with that. Test and see if it works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks,
I have answered yes. But it throws same error as I said above. Any idea?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
have you tried git cloning with that user that you have in bamboo? if you try that can you git clone the repository from the Bitbucket ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.