Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ambiguous key verification error #61

Open
tomjn opened this issue Mar 24, 2023 · 2 comments
Open

Ambiguous key verification error #61

tomjn opened this issue Mar 24, 2023 · 2 comments

Comments

@tomjn
Copy link

tomjn commented Mar 24, 2023

With the recent change to githubs RSA fingerprints we had to update the SSH known hosts secret, but unfortunately github was not the only thing in there ( is there ever a situation were this deployer would run and not need to know the github SSH? ).

However github was not the only host listed, and now deployment fails with host key verification failed, but which key? Who is the host? My key? The private key in secrets? The server we're deploying to? How do I find out?

Here's the output, I've swapped out the IP for 1.2.3.4:

$ php vendor/bin/dep deploy test -v --no-interaction --ansi -vvv 
✈︎ Deploying deploy-test on 1.2.3.4
• done on [1.2.3.4]
➤ Executing task deploy:prepare
[23.94.156.6] > echo $0
[23.94.156.6] < ssh multiplexing initialization
[23.94.156.6] < Host key verification failed.
➤ Executing task deploy:failed
• done on [1.2.3.4]
✔ Ok [0ms]
➤ Executing task deploy:unlock
[23.94.156.6] > rm -f ~/deploy/.dep/deploy.lock
[23.94.156.6] < ssh multiplexing initialization
[23.94.156.6] < Host key verification failed.

Also noting that this is an inherited setup, the person who originally set this up is long gone and unavailable

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@peterjaap
Copy link

See https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/

@tomjn
Copy link
Author

tomjn commented Mar 24, 2023

we did, please re-read the issue! Thats what triggered the problem, we grabbed the new known hosts entries for github and put them in the secret referenced from the action.

Since I raised the issue I figured out that the host key verification it was complaining about referred to the server we are deploying to, and that was not clear from the output, hence the issue. I figured this out by using ssh-keyscan until I discovered which one it was. This would have been much easier and quicker if the deployer action had named the host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants