为什么我的 SSH 没有办法连接到 github?

2020-07-28 17:56:12 +08:00
 yazoox

windows 10 LTST 2019

~/.ssh/id_isa

本来有一个配置,但这个是连接公司的 gitlab 现在想连接 github,所以又用 ssh-keygen 生成了一个 yazoox_isa

并且也 ssh-add 成功了。github 上面,也添加了该 SSH Key

但是我 git clone github 上面的项目时,却报错,如下:

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

这里的 SHA256 我也不知道是啥,在 known_hosts 里面没有该值。

然后下面的选择 fingerprint 后,我把 yazoox_isa.pub 里面的内容帖上去,也不行,还是失败。

请教一下,这个到底该如何设置?哪里出了问题?

谢谢!

1731 次点击
所在节点    GitHub
5 条回复
FragmentLs
2020-07-28 18:01:59 +08:00
......那不是报错,yes continue 就行了
ayase252
2020-07-28 18:07:09 +08:00
yes
SjwNo1
2020-07-28 18:08:47 +08:00
Are you sure you want to continue connecting (yes/no/[fingerprint])?
这一步需要输入 yes,并不是习惯动作回车哦
yazoox
2020-07-31 15:44:59 +08:00
@FragmentLs @ayase252 @SjwNo1

兄弟们,不行啊!我输入了 yes.
但是当我 git clone 时,还是出错呢。

···
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
···
yazoox
2020-07-31 15:49:13 +08:00
并且,我测试过
ssh -T git@github.com
Hi, xxx! You've successfully authenticated, but GitHub does not provide shell access.

还有哪里不对么?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/693822

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX