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

How do I create a known_hosts file?

Matt T July 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
SebC
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 9, 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
TAGS
AUG Leaders

Atlassian Community Events