Skip to content

Commit

Permalink
Merge pull request #1045 from dm3-org/feature/addCIReadme
Browse files Browse the repository at this point in the history
explain host key stuff
  • Loading branch information
AlexNi245 authored Jun 24, 2024
2 parents 4ffb671 + 9ee0d93 commit 8f488d5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Some notes on handling certain stuff

# Host key verification failed

Before connecting to the server from the deployment pipeline, we make sure the server's host key is in the known_hosts file. This is the command used:

`echo "${{ secrets.HOST_SSH_PUBLIC_KEY }}" > ~/.ssh/known_hosts`

If the server's host key changes, the pipeline will fail with the error message "Host key verification failed". To fix this, log in to the server with ssh from your local machine, and accept the new host key. Then, copy the last line from the known_hosts file on your local machine to the secret HOST_SSH_PUBLIC_KEY in the repository.

If you already logged in to the server from your local machine before, you can find the proper line to copy by running this command:

`ssh-keygen -H -F app.dm3.network`

0 comments on commit 8f488d5

Please sign in to comment.