Search code examples
gitgithubsshgit-pushgit-remote

Git push hangs when pushing via ssh


Attempting to push my development branch to my github repo.

git push origin develop -v

The connection hangs and hangs and hangs and hangs and never times out. I never receive error messages nor "writing objects" nor any sort of communication.

Connecting via ssh. Have verified that I can connect via ssh to github meaning my public keys are valid.

git remote set-url origin git@github.com:username/Forkedrepo.git
ssh -T git@github.com

What else can I do? FWIW, I can connect to other sites via ssh and git push. I also know I CANNOT connect via https over this router.

Using a Windows workstation and git push works with other non-github remote repos.


Solution

  • Easy answer after much head scratching.

    Don't use Cygwin for github access. An alternative is to do all your normal terminal functions in Cygwin and then use Windows Command Line for
    git push origin

    Be sure to have ssh keys added to your account. Here are steps to add ssh to github. Also be sure your ssh keys have a passphrase.