title: Failing to push git to Heroku port 22: bad file number
body: <p>After creating my rails project, pushing it into the GIT repo, was not able to push it to Heroku.
  When I run the command: </p>
  
  <pre><code>git push heroku master
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>ssh: connect to host heroku.com port 22: Bad file number
  fatal: The remote end hung up unexpectedly
  </code></pre>
  
  <p>Am not behind a firewall, proxy or vpn..
  I have run</p>
  
  <pre><code>  heroku status
  </code></pre>
  
  <p>and it is working fine.</p>
  
  <p>I have even made sure ssh is working fine with Git. and run</p>
  
  <pre><code> ssh -vT git@github.com
  </code></pre>
  
  <p>and it run successfully</p>
  
  <p>I run </p>
  
  <pre><code> telnet heroku.com 22 
  </code></pre>
  
  <p>and it failed</p>
  
  <pre><code> connecting to heroku.com .. could not open connection to the host, on port 22:Connect failed
  </code></pre>
  
  <p>Also run and failed</p>
  
  <pre><code> ssh git@heroku.com
   ssh: connect to host heroku.com port 22: bad file number
  </code></pre>