本文介绍了Heroku项目的git克隆失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
(在Mac上)
我试图从我的新电脑中克隆我的项目。我首先生成了ssh密钥对:
(on Mac)I'm trying to clone my project from my new computer. I first generated the ssh key pairs:
heroku keys:add /Users/y/.ssh/heroku_rsa.pub
heroku keys 显示:
ssh-rsa AAAAB3NzaC...B9DjpXg3fb [email protected]
当我尝试克服 git clone [email protected]:xyz.git
Cloning into xyz... Warning: Permanently added the RSA host key for IP address '50.19.85.132' to the list of known hosts. Permission denied (publickey). fatal: The remote end hung up unexpectedly
这很奇怪。
编辑:如果我不重命名我的酒吧密钥文件,那么它的作品。不知何故,heroku不喜欢重命名我的钥匙..换句话说,使用de < id_rsa.pub 名称。
If I don't rename my pub key file then it works. Somehow heroku doesn't like renaming my keys.. in other words, use the deault id_rsa.pub name.
推荐答案
它看起来像你的密钥没有加载。只有默认加载的默认命名键(id_rsa)。使用ssh-add命令加载heroku密钥:
It looks like your key is not loaded. Only default named key (id_rsa) loaded by default. Load the heroku key by using ssh-add command:
ssh-add ~/.ssh/heroku_rsa
这篇关于Heroku项目的git克隆失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!