【发布时间】:2019-10-17 19:18:34
【问题描述】:
我正在尝试从 github 克隆一个 repo。这样做
我使用 ssh-keygen 生成了一个 ssh 密钥。
然后我将 ~/.ssh/id_rsa.pub 的内容添加到我在 github 帐户中的密钥中。
即使在那之后我也无法克隆任何 repo。我收到以下错误:
ssh_exchange_identification: read: Operation timed out
Please make sure you have the correct access rights
and the repository exists.
在这方面,我在这里浏览了几篇帖子,但无法修复。
注意:即使从我的 github 帐户中删除 SSH 密钥后,我也会遇到此错误。
编辑:当我执行“ssh -T git@github.com”时,我得到了同样的错误:
ssh_exchange_identification: read: Operation timed out
如建议:https://help.github.com/en/articles/error-permission-denied-publickey,同时执行以下命令:
1. ssh-add -l ==> The agent has no identities.
2. ssh-add -l -E md5 ==> The agent has no identities.
【问题讨论】: