1

我正在做 Hartle Ruby on Rails 教程,这是我第一次将项目推送到 heroku,我试图找出问题所在。

$ heroku login
email
password
Could not find an existing public key 
Would you like to generate one? [y/n] <--- I hit enter which gave me..
Generating new SSH public key.
Uploading SSH public key /Users/myname/.ssh/id_rsa.pub... done
Authentication successful.

之后我转到下一个命令 heroku create,因为我已经在我想要的目录中,“first_app”

$ heroku create
Creating immense-savannah-2464... done, stack is cedar
http://immense-savannah-2464.herokuapp.com/ | git@heroku.com:immense-savannah-2464.git  <--- this is not what Hartl gets in his tutorial so I don't know if this looks right or wrong.

之后我尝试将我的项目推送到heroku:

$ git push heroku master
The authenticity of host 'heroku.com (XX.XX.XX.XXX)' can't be established.
RSA key fingerprint is Xb:XX:Xe:XX:Xe:cX:XX:XX:XX:fX:XX:Xc:Xf:cX:XX:ad.
Are you sure you want to continue connecting (yes/no)? <--- I always hit "no" because I don't know if I should hit "yes." After I hit "no" it tells me that the host key verification failed!

知道我做错了什么吗?我被困住了 - 任何帮助将不胜感激!

4

1 回答 1

0

您是否已经完成了此处列出的所有步骤?
您需要创建一个公钥/私钥对来将代码部署到 Heroku。

该帖子将引导您完成所有步骤。

我找到了可能对您有所帮助的答案。尝试将 [remote "heroku"] 中的项目名称更改为 heroku 在.git/config

更新

我只是遇到了同样的问题。yes当它询问时我输入了它Are you sure you want to continue connecting (yes/no)?,然后它仍然无法连接并返回fatal: The remote end hung up unexpectedly

然后我跑了ssh-keygen -t rsa,按了几次回车,它起作用了。

自从我将 Rails 文件夹复制到新计算机后,就出现了这个问题。其余的 heroku 命令有效,只有 push 无效。

于 2013-04-16T01:12:16.993 回答