[英]Host key validation failed
I have create a key ssh on my server et added on Github. 我在我的服务器上创建了一个ssh密钥,并在Github上添加了它。
When i use the the webhook which call a php page on my seveur with 当我使用webhook在我的seveur上调用php页面时
<?php `git pull`;
The error.log of apache said me :;Host key validation failed. apache的error.log对我说::主机密钥验证失败。
I try to resolve it by this link https://askubuntu.com/questions/45679/ssh-connection-problem-with-host-key-verification-failed-error 我尝试通过此链接来解决它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. 转到GitHub文档 ,您可以在其中查看将要验证的指纹。
Then change to this user running the script ( apache
?) for example using sudo and run ssh github.com
. 然后更改为例如使用sudo运行脚本(
apache
?)的该用户并运行ssh github.com
。 It will prompt you to verify the fingerprints. 它将提示您验证指纹。 If they match, write yes and then you script should pass.
如果它们匹配,则输入yes,然后脚本应该通过。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.