Question: 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/> | git@heroku.com: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: 
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

```
I added the https url to the .git/config file in my project folder. I found the HTTPS URL in the project Settings on Heroku. I then added that URL to replace the SSH url inside the .git/config text file.