Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket pipelines: SSH host key verification failed.

Matt Goodson December 5, 2018

I have successfully configured a repo to deploy to a VM via ssh using pipelines. I am now trying to do the same for a second repo.

I have generated ssh keys on the repo, put the public key in authorised keys on the VM and added the host to known hosts on bitbucket. 

This worked fine on the first repo with pipeline deploys working as expected.

For the second repo, ssh keeps failing with 'host key verification failed'.

I am using the exact same deploy step and the same VM for both repos. I have tried generating new keys and removing and re-adding the host but it hasn't helped.

The only thing I can think of is that maybe using the same known-host on two repo's for the same account is causing some issue?

1 answer

1 vote
Graham Gatus
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 5, 2019

@Matt Goodson were you able to resolve this issue? The scenario you've describe seems perfectly valid - if this isn't working please raise a support ticket so we can do a more thorough investigation.

Matt Goodson March 5, 2019

Hi, yes I was eventually able to make this work. Can't remember what exactly was wrong at this point.

Regardless, I have since migrated off Pipelines to Google cloud build which is far superior! 72 times more build minutes and much faster and easier to use! Yep 3500 free build minutes a month. Actually a usable amount. Just about used up all my free minutes on Pipelines just configuring the thing. The rest was taken up in about 10 builds from totally unpredictable build times. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events