当前位置:   article > 正文

Error:The authenticity of host 'github.com (192.30.255.112)' can't be established.

Error:The authenticity of host 'github.com (192.30.255.112)' can't be established.

Git密钥认证github时出现如下错误:

$ ssh -T git@github.com
The authenticity of host 'github.com (192.30.255.112)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKY8.
Are you sure you want to continue connecting (yes/no)?
  • 1
  • 2
  • 3
  • 4

解决方法:
直接输入 yes 回车,这时在ssh目录下除id_rsa,id_rsa.pub文件外,还会生成一个know_hosts 文件。

$ ssh git@github.com
PTY allocation request failed on channel 0
You've successfully authenticated, but GitHub does not provide shell access.
Connection to github.com closed.
  • 1
  • 2
  • 3
  • 4
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/寸_铁/article/detail/819339
推荐阅读
相关标签
  

闽ICP备14008679号