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

Use SSH in a custom pipe

segy April 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?

2 answers

0 votes
pablodenadai May 30, 2019

Any updates on this issue @segy? I'm have the same problem here

0 votes
Alexander Zhukov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 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
TAGS
AUG Leaders

Atlassian Community Events