我试图从github项目拉到我的本地存储库。无法从github提取更改 - 权限被拒绝(publickey)。致命:无法从远程存储库读取
我生成了所有必需的ssh密钥。我克隆了这个项目。但是当我试图把我的变化抓到:
$ git pull
The authenticity of host 'github.com (192.30.252.129)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.252.129' (RSA) to the list of know
n hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
这里是.ssh
内容:
的C目录:\用户\ nlel.ssh
15.01.2014 13:35 <DIR> .
15.01.2014 13:35 <DIR> ..
09.01.2014 15:24 1 675 github_rsa
09.01.2014 15:24 391 github_rsa.pub
09.01.2014 13:08 1 751 id_rsa
09.01.2014 13:08 405 id_rsa.pub
15.01.2014 13:36 803 known_hosts
5 File(s) 5 025 bytes
2 Dir(s) 59 142 991 872 bytes free
它们在github上呈现帐户。我克隆了项目好。
解决方案:
我重新创建我的钥匙。并使用关键短语再次生成它们。
我从pc和github删除旧密钥,并添加新的。
现在所有的作品。棘手的一点是,这个回购是私人的。
- 为什么会发生这种情况?
- 如何解决这个麻烦?
您用来克隆的命令是什么,克隆后您是否对密钥做任何更改? – Bijendra
好吧,我已经在答案中包含了你的结论以获得更多的知名度。 – VonC