美文网首页
ssh -T git@github.com 出错

ssh -T git@github.com 出错

作者: FlyTheKite | 来源:发表于2017-05-18 12:12 被阅读463次

ssh -T git@github.com 出错

The authenticity of host 'github.com (192.30.255.113)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? no

can't connect to github via ssh


Did you try to add github as known host?

If you have an existing known_hosts file and do not want to overwrite (as @Puce suggested in the comment), use this.

ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
This will add the rsa key to the end of the known_hosts.

If you have no idea what known_hosts is/means, or you never engaged with it for sure, you can simply write a new one, but note that this will remove the existing one if you had any.

ssh-keyscan -t rsa github.com > ~/.ssh/known_hosts

相关文章

网友评论

      本文标题:ssh -T git@github.com 出错

      本文链接:https://www.haomeiwen.com/subject/ahrsxxtx.html