Git push freezes when pressed via ssh

Trying to push my development branch to my github registry.

git push origin develop -v 

The connection freezes and freezes, freezes and freezes, and never leaves. I never receive error messages, do not "write objects", nor any messages.

Connection via ssh. Confirmed that I can connect via ssh to github, which means 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 that I CANNOT connect via https through this router.

Using a Windows workstation and git push works with other remote repositories other than github.

+4
source share
2 answers

Easy answer after a big head scratch.

Do not use Cygwin to access github. An alternative is to perform all of your usual terminal functions in Cygwin, and then use the Windows command line to
git push origin

Make sure ssh keys are added to your account. Below are the steps to add ssh to github . Also make sure your ssh keys have a passphrase.

+1
source

This is a copy of the answer I just posted elsewhere

I wonder if it was the same as what I had ...

  • Go to Putty
  • Click "Default Settings" in saved sessions. Click Download
  • Go to connection → SSH → Errors
  • Set "Chokes on PuTTY SSH-2" winadj "requests" to "On" (instead of "Auto")
  • Return to the session in the tree structure (at the top of the list)
  • Click "Default Settings" in the "Saved Sessions" field. Click "Save."

This (almost literally) comes from https://tortoisegit.org/issue/1880

0
source

Source: https://habr.com/ru/post/1493011/


All Articles