小编Ben*_*min的帖子

无法通过ssh连接到github

我试图从我新安装的linux机器上运行带有fluxbox的manjaro,在github上克隆我的一个存储库.我设置了user.name和user.email并上传了正确的ssh密钥.但我总是得到

The authenticity of host 'github.com (192.30.252.129)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? 
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.
Run Code Online (Sandbox Code Playgroud)

我google了它,发现我应该做的ssh-keygen -R github.com应该从我的known_hosts文件中删除github但是known_hosts文件还没有存在,因为我刚刚完成了一个新的linux安装.

所以我试过ssh -vT git@github给了我

ssh -vT git@github.com
OpenSSH_7.1p1, OpenSSL 1.0.2d 9 Jul 2015
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to github.com [192.30.252.128] port 22.
debug1: …
Run Code Online (Sandbox Code Playgroud)

git ssh github

16
推荐指数
1
解决办法
2万
查看次数

标签 统计

git ×1

github ×1

ssh ×1