0

我刚刚被 Heroku 邀请参与一个 Web 应用程序。当我输入 git clone 命令时,我不断收到此错误消息。

The authenticity of host 'heroku.com (50.19.85.154)' can't be established.
RSA key fingerprint is 8b:48:5e:67:0e:c9:16:47:32:f2:87:0c:1f:c8:60:ad.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'heroku.com,50.19.85.154' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

输入指令:

git clone git@heroku.com:stormy-stone-5088.git -o heroku 
4

1 回答 1

1

如果没有为其他项目完成,您可能需要设置您的私钥(作者经常假设)

类型

cd ~; ssh-keygen -t dsa
#(changes directory to home and generate the keys.)

按回车四次,然后点击你的脚后跟三下,你的钥匙就会进入~/.ssh

~/.ssh/id_rsa.pub是你的公钥,你给别人的那个。

于 2012-06-27T20:15:30.493 回答