Reputation: 1132
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?
Upvotes: 1
Views: 4060
Reputation: 4047
I had been working on this for hours trying to figure out how I could suddenly have a closed port 22, etc. when literally 5 hours ago everything was working and nothing had changed.
Finally I just reset my Git repo on Heroku and repushed everything. Still no idea what happened.
heroku plugins:install heroku-repo
heroku repo:reset --app appname
Upvotes: 0
Reputation: 3466
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.
Upvotes: 3