Ssh: connect to the host.

I am working on Ubuntu 11.10. The local branch of my git-repo has been updated

Then I wrote the following command in the terminal: heroku create --stack cedar, and he said:
Please note: Wed, June 20, our default stack will change to Cedar. http://bit.ly/Lh0rM5

Making the radiant wind-7413 ... done, cedar stack
http://radiant-wind-7413.herokuapp.com/ | git @ heroku.com: radiant winds 7413.git
Git removed hero added

Everything is fine so far, then I typed the following in the terminal:

git push heroku master 

and the following error occurred: ssh: connect to host: heroku.com port 22: connection timeout
fatal: the far end unexpectedly hung up

+4
source share
4 answers

Most likely, some kind of problem with the firewall or your network administrator has blocked outgoing port 22 on your network.

You can use a simple script to see your connection with Heroku:

$ ssh -vvv git@heroku.com

If you see a connection timeout, you might need your administrator to unblock port 22. Alternatively, you can access Heroku through tunneling according to my answer in Connecting to a hero using port 443

+5
source

I had a similar problem with keys. Ok, this is what I did.

Check the status of your keys with

 heroku keys 

It displays a list of keys that are added to the hero. You can always generate new keys and add them to the hero.

 ssh-keygen -t rsa 

Creates a new key.

heroku keys:add

Adds keys to the hero. Before adding to it, the available keys that you can add are listed. Enter the option and the key is added to the hero.

This article may be helpful. If this does not work, there is a problem with ssh. Try ssh localhost and see if ssh works.

+4
source

Heroku uses git over ssh today. The default port for ssh is 22, and it looks like your network does not allow outgoing connections to port 22. Perhaps this may change your network administrator.

+2
source

Take the following steps.

 ssh-keygen -t rsa heroku keys:add heroku keys # lists keys 
0
source

All Articles