ssh: connect to host heroku.com port 22: Connection timed out

user1447288 picture user1447288 · Jun 10, 2012 · Viewed 11.7k times · Source

I am working on Ubuntu 11.10 Local branch of my git-repo is up to date

I then wrote following command in terminal: heroku create --stack cedar and it said:
Notice: on Wed, 20 June, our default stack will change to Cedar. http://bit.ly/Lh0rM5

Creating radiant-wind-7413... done, stack is cedar
http://radiant-wind-7413.herokuapp.com/ | [email protected]:radiant-wind-7413.git
Git remote heroku added

All fine till now, then I typed following in terminal:

git push heroku master

and the following error occured: ssh: connect to host heroku.com port 22: Connection timed out
fatal: The remote end hung up unexpectedly

Answer

AzizSM picture AzizSM · Oct 28, 2013

Most probably some sort of firewall issue or your network admin has blocked outgoing port 22 in your network.

You may use simple scrip to see your connection to Heroku by :

$ ssh -vvv [email protected]

If you seeing connect timed out then you may need to request your admin to unblock port 22. Alternatively may access Heroku via tunneling as per my answer in Connecting to heroku using port 443