I want to download from private bitbucket repository in a custom pipe. This works in a pipeline - I added public key into access keys. However in pipe it fails with 'Host key verification failed.'
I found this post: https://community.atlassian.com/t5/Bitbucket-questions/Can-t-Access-SSH-Key-from-Custom-Pipe/qaq-p/1031710
So I tried adding the key with
ssh-add /opt/atlassian/pipelines/agent/data/id_rsa
This failed so I also tried asdding id_rsa_tmp as suggested in the post, but that doesn't work either. How can this be achieved?
Any updates on this issue @segy? I'm have the same problem here
Tomáš,
Have you configured the Known hosts in the Pipelines > SSH Keys section in a repo settings?
Also, another option would be to disable the host key verification when making an ssh connection in your pipe:
$ ssh -o StrictHostKeyChecking=no user@something.example.com
I hope this should solve the issue.
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.