When using GIT, I have problems with using GIT over SSH, and since it works just fine both from work, and at home with a different modem, it's obviously my home modem that is acting up. I have no problems connecting over HTTP.
So, I'm assuming it is an SSH problem, but I'm no expert at using it directly. Is there any command I can run which sets up a "test" connection, and lets me know exactly when and where along the line the problem occurs?
Pretty much all "larger" commands (such as fetch
, clone
, or push
with much data) from git
(even when run with -v
) just "hang" in the middle of connecting remotely with no indication as to why they have stopped, so they are of no use.
Is there any way I can get more details on what is happening in the SSH connection?
GIT_SSH_COMMAND="ssh -v" git clone example
I can debug SSH version, it's printed afterCloning into
message, but fail atgit clone
. After I removeGIT_SSH_COMMAND
it works. In the end, served the purpose. – Paulo Oliveira Jan 18 '16 at 15:06git -c core.sshCommand="ssh -vvv" pull
– Joseph K. Strauss May 02 '17 at 15:24git config --global core.sshCommand "ssh -vvv" git clone example
– Azodium Jun 05 '18 at 10:01