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

Use SSH in a custom pipe

Tomáš Šághy Apr 10, 2019

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?

1 answer

0 votes
Alexander Zhukov Atlassian Team Apr 19, 2019

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.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,749 views 1 18
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