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

来源:互联网 发布:中国人工智能技术发展 编辑:程序博客网 时间:2024/05/01 13:00

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

$ ssh -T git@github.comThe 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)?

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

$ ssh git@github.comPTY allocation request failed on channel 0You've successfully authenticated, but GitHub does not provide shell access.Connection to github.com closed.
阅读全文
0 0
原创粉丝点击