Rails / Heroku: fatal: The remote end hung up unexpectedly

安稳与你 提交于 2019-12-20 04:56:16

问题


I created a Heroku account yesterday, and uploaded a website, updating it multible times. But today when I tried to upload a new version it did'nt work, it just keeps giving me this error message:

ssh: connect to host port 22: Connection refused
fatal: The remote end hung up unexpectedly

I tried to restart the heroku server, my own computer, create new keys using: http://devcenter.heroku.com/articles/keys

If I go ssh -vvv mail@adress:

OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /etc/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to  [195.128.174.124] port 22.
debug1: connect to address 195.128.174.124 port 22: Connection refused
ssh: connect to host  port 22: Connection refused

What can I do to make it work?


回答1:


I have seen this problem in the past and the problem is either the hosted app location is incorrect or the security keys are missing/corrupt. The hostname you have seems odd. Unless you have that domain mapped out to the heroku hosted app. Typically heroku app url would be something like herokuapp.com/someapname

But if you have a DNS mapping in place, please ignore that comment. But do have someone cross-check the key installation steps and make sure they are in sync with the heroku guidelines.



来源:https://stackoverflow.com/questions/8742937/rails-heroku-fatal-the-remote-end-hung-up-unexpectedly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!