Rails / Heroku: fatal: the remote end hangs up unexpectedly

Yesterday I created a Heroku account and uploaded the website, updating it many times. But today, when I tried to download the new version, it did not 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 to ssh -vvv mail @ address:

 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
source share
1 answer

I have seen this problem in the past, and the problem is that the placement of the hosted site is incorrect or the security keys are missing / damaged. Your hostname seems strange. If you have this domain mapped to a hosted heroku application. Typically, the URL of the heroku application will be similar to herokuapp.com/someapname

But if you have a DNS mapping, skip this comment. But ask someone to cross-check the key installation steps and make sure they are in sync with the heroku recommendations.

+3
source

All Articles