Host Key verification failed
Hello, I'm attempting to deploy a web server through the apache http server and am getting an error saying
error: Host key verification failed.
fatal: Could not read from remote repository.
I assume this is referencing the private github repo that has the html code (can not make this public), however, I am not sure how to resolve this. Any assistance would be appreciated.
Responses
Hi Maria Dmitrievskaia,
- Are you able to post the contents of your custom repo file located at
/etc/yum.repos.d/whatever_you_named_the_file.repo
? - Are you using "git"? (I would kinda believe so), and maybe see this https://stackoverflow.com/questions/13363553/git-error-host-key-verification-failed-when-connecting-to-remote-repository.
However, if it is someone's private github, you may not be able to change it to http and make it work.
I did notice [this like issue someone filed a issue (not Red Hat bugzilla) and a work around, maybe at https://github.com/ansible/ansible/issues/76158 and look for the response by sivel commented on Oct 27, 2021
.
Also see this link, similar author, I think.
It seems maybe you either have a conflicting key in your known_hosts file, or you need to somehow add a relevant entry in your known_hosts file... maybe.
Are you able to post more of the error output??
Kind Regards,
RJ