简体   繁体   中英

Host key validation failed

I have create a key ssh on my server et added on Github.

When i use the the webhook which call a php page on my seveur with

<?php `git pull`;

The error.log of apache said me :;Host key validation failed.

I try to resolve it by this link https://askubuntu.com/questions/45679/ssh-connection-problem-with-host-key-verification-failed-error

ssh-keygen -R github.com

But it's continue to doesn't work.

Do you have a suggestion?

Host key validation failed

Means that the server host key is not trusted (which is sane -- there is no way to verify that key from a script -- you should do that manually).

Go to the GitHub documentation , where you can see the fingerprints you will be verifying.

Then change to this user running the script ( apache ?) for example using sudo and run ssh github.com . It will prompt you to verify the fingerprints. If they match, write yes and then you script should pass.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM