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

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

1 vote

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 Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Mar 14, 2019 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,002 views 1 16
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