我正在做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!

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

===============>>#1 票数:0

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

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

我发现此答案可能会对您有所帮助 尝试将[remote“ heroku”]中的项目名称更改为.git/config heroku给定的名称

更新资料

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

然后,我运行ssh-keygen -t rsa ,几次按回车键都成功了。

自从我将Rails文件夹复制到新计算机后,出现了此问题。 heroku命令的其余部分都起作用,但仅推送无效。

  ask by user2280826 translate from so

未解决问题?本站智能推荐: