How do I create a known_hosts file?

I'm following this guide for setting up ssh keys for pipelines. https://confluence.atlassian.com/bitbucket/use-ssh-keys-in-bitbucket-pipelines-847452940.html

How do I go about setting up an known_hosts file. I can't fns any documentaion that explains how to go about this.

Thanks

1 answer

0 votes

Hey @Matt Tunney,

The `known_hosts` file is created for you when add a system in the ssh-keys UI.

The UI is available under your repository settings -> Pipelines -> SSH Keys.

Enter the remote host address, and click 'Fetch'

Screen Shot 2017-11-10 at 1.25.29 pm.png

Now when you run ssh commands inside your pipeline, your server fingerprint is automatically validated.

 

-Seb

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

689 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot