我很难从heroku拉出来

时间:2012-06-27 19:26:04

标签: ruby-on-rails ruby git heroku github

我刚被邀请参加Heroku参加网络应用程序。当我输入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 

1 个答案:

答案 0 :(得分:1)

如果没有为其他项目(因此通常由作者承担),您可能需要设置私钥

输入

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

按四次返回,三次点击你的高跟鞋,你的钥匙将在~/.ssh

~/.ssh/id_rsa.pub是您的公钥,是您给其他人的公钥。