question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dokku clone failing because of ssh fingerprint

See original GitHub issue

When I tried to use dokku clone, the task hung indefinitely when it was run via ansible. There was no error or debugging output available when ansible was run with -vvvv so I attempted to run the same command directly via ssh.

I ran into this error:

The authenticity of host 'github.com (140.82.114.3)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.

It looks like there already exists a check to ensure github.com is added to known_hosts, but if a user has FingerprintHash md5 the known_hosts value is invalid.

I’m guessing what we need to do here is somehow check the FingerprintHash setting and change what line we are checking for in known_hosts, but my ansible knowledge isn’t advanced enough to understand how to make this change. Any ideas? Happy to contribute if you push me in the right direction!

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
josegonzalezcommented, Nov 14, 2021
0reactions
fr3foucommented, Nov 14, 2021

As I understand https://superuser.com/a/929567 it would be and ~/.ssh/config with

Host github.com
    FingerprintHash md5

would this be for the dokku user?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue #8 · dokku/github-action - Host key verification failed.
Hey, I keep getting the "Host key verification failed." error. What I've done so far: On Github, configured repo secret SSH_HOST_KEY (/root/.ssh/id_rsa.pub) ...
Read more >
Git error: "Host Key Verification Failed" when connecting to ...
As I answered previously in Cloning git repo causes error - Host key verification ... This is happening because github is not currently...
Read more >
How to Fix SSH “Permission Denied” with Git Clone - Medium
First of all, ensure that your SSH key has been generated and the file containing the corresponding public key id_rsa.pub has been added...
Read more >
Non interactive git clone (ssh fingerprint prompt) - Server Fault
It won't ask you for a fingerprint, because ssh is not involved, https is used instead. ... If this is ever the case,...
Read more >
Plugin triggers - Dokku Documentation
#!/usr/bin/env bash # Send an email when a container failed to retire set -eo pipefail; ... Note that the NAME value is set...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found