When Git or SSH Protocols Blocked

Recently I had issues connecting to Github because of some firewall restrictions outside my control. The firewall had outbound SSH (port 22) blocked. My co-worker Justin Hammond found a git config option that lets you force all git commands to use https:// (port 443) instead of ssh:// (port 22).

git config --global url."https://".insteadOf git://

Worked like a charm. Thanks Justin. Hope this helps someone else.

NB: Don’t use --global if you don’t want this applied to all repositories. Without it only sets for the current repository you’re in.

NB: All ports but 80 and 443 were blocked. I couldn’t use 9418 (Git protocol) either

Jason Meridth

jmeridth

My name is Jason Meridth. I am a continuously learning senior software developer/devops/team lead/development manager trying to not let best be the enemy of better. I reserve the right to change my mind upon obtaining more information. I am also the owner and principal software consultant at Meridth, LLC. If you have any software, hardward, networking, process, etc needs please don't hesitate to reach out to me.

Raspberry Pi Kubernetes Cluster - Part 2

Howdy again.Alright, my 8 port switch showed up so I was able to connect my raspberry 3B+ boards to my home network. I plugged it in wit...… Continue reading

Raspberry Pi Kubernetes Cluster - Part 1

Published on April 07, 2018

SSH - Too Many Authentication Failures

Published on March 28, 2018