Github from behind the proxy


I use github (obviously) a lot but since British Telecom decided to randomly switch my neighbour's phone line with mine and IPhone hotspot with o2 doesn't allow ssh connections from I do have a problem. No Github. HTTP, HTTPS, SSH work ok though.

How to access github from behind firewall or O2 hotspot proxy?


I started with trying to ssh to it directly, to verify I can use github via SSH.

ssh -vT

Unfortunately I got an error: Could not resolve hostname

OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /Users/Forger/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: Applying options for *
ssh: Could not resolve hostname nodename nor servname provided, or not known


Same error I get when I try to clone any repository or push to an existing one.


SSH works ok, so I logged in to my aws server and run ssh -vT command again.

OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to [] port 22.  <--- what we need!
debug1: Connection established.
debug1: identity file /home/ubuntu/.ssh/id_rsa type -1
debug1: identity file /home/ubuntu/.ssh/id_rsa-cert type -1
... some more stuff ...

Ok. That's better. IP address is what I was hoping for.

ssh -vT git@

Running ssh -vT from local terminal went through with no errors.

So I edited ~.ssh/config, adding:


And again:

ssh -vT

No errors. Great! Git commands git push and git clone went through ok as well.

Ping me if it helps you too.

Published by IndieForger