pushing to github from work “Bad file number” error

I got msysgit installed at my computer. And I configured it to work with github at home, where everything went fine.
At work it doesn’t:

D:\rails_tutorial_projects\first_app>git push --verbose
Pushing to git@github.com:Monomachus/DemoRubyApp.git
ssh: connect to host github.com port 22: Bad file number
fatal: The remote end hung up unexpectedly

I read about Smart HTTP Support https://github.com/blog/642-smart-http-support
But it seems that it doesn’t work too. I make clone and all that stuff without problems but when I try to push changes back to github this is where the same problems came in.
My msysgit version is git version

  • SourceTree - git: fatal: remote error: Repository not found
  • Git Symlinks in Windows
  • Multiple working directories with Git?
  • injecting files into a git repository without doing a checkout
  • Clone submodule into directory
  • Visual Studio 2015 and github - update fork from upstream master
  • Please help me with this awkward situation.

  • Create a git repository that contains another git repository
  • When should I use git pull --rebase?
  • How do I squash two non-consecutive commits?
  • How do I resolve cherry-pick conflicts using their changes?
  • git list changed files in several commits
  • Promote Git branch to master
  • One Solution collect form web for “pushing to github from work “Bad file number” error”

    This error is also caused by attempting to push/clone etc. through a proxy server. Since you mentioned you are at a business, do they use a proxy server there?

    The error is git literally saying, “hey, the file isn’t there”, because it can’t get through the proxy server.

    Git Baby is a git and github fan, let's start git clone.