我正在上课,要求我们将我们的ruby放在Heroku上的rails应用程序上。他们给我们一步一步的指示来建立Heroku,我跟着他。我可以从命令行登录到heroku,但是当我尝试将我的应用程序推送到它时,我得到了这个:
Read from socket failed: Connection reset by peer
fatal: The remote end hung up unexpectedly
我已经ping了服务器,它有效。我已经尝试重新启动,在一天之后回来,重新创建应用程序,这很好。我检查确保我有Heroku工具带。我花了几个小时搜索谷歌。我还没有找到解决方案。
运行ssh -vvv mylogin@heroku
后我
OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
ssh: Could not resolve hostname heroku: Name or service not known
运行ssh git@heroku.com -T
后我
Warning: Permanently added the RSA host key for IP address '50.19.85.154' to the list of known hosts.
Permission denied (publickey).
所以我再次尝试了git push heroku master
并获得了
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
有什么想法吗?
答案 0 :(得分:3)
所以我得到了它的工作!感谢那些回复的人 - 他们开始着手解决问题。 所以这就是我所做的。
我跑了ssh -vvv reneeggallison@gmail.com@heroku
给了我
OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
ssh: Could not resolve hostname heroku: Name or service not known
在研究了这个错误后,我决定运行ssh git@heroku.com -T
,接收到这个回复:
Warning: Permanently added the RSA host key for IP address '50.19.85.154' to the list of known hosts.
Permission denied (publickey).
这改变了我的错误git push heroku master
来自
Read from socket failed: Connection reset by peer
fatal: The remote end hung up unexpectedly
到
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
因此,在研究该错误时,我运行了heroku keys:add ~/.ssh/id_rsa.pub
返回:
Uploading SSH public key /home/renee/.ssh/id_rsa.pub... done
这似乎很好,我再次跑git push heroku master
并取得了成功。
所以,谢谢大家,祝你好运
答案 1 :(得分:1)