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?
Community moderators have prevented the ability to post new answers.
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.comI 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.