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?

Matt Tunney Jul 24, 2017

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
Sebastian Cole Atlassian Team Nov 09, 2017

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 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...

3,236 views 1 22
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