Today, I was trying to pull/push repos from Github and I was getting timeout errors. I use SSH for clonning and I prefer it this way over HTTPS.

I was looking for the reason but it felt like a temporary glitch, either on Github’s or my provider’s side. I was googling for anything, that could help me and I found1 the way to use Github ssh clone/push/pull via SSH (as I want), but via port 443… Simulating HTTPS traffic… OK…

Info

That’s actually a neat hack to pass firewall blocking SSH access, which is often practice in hotel’s wifi or other public hot spots.

First, you have to add this to your ~/.ssh/config file:

~/.ssh/config
Host github.com
 Hostname ssh.github.com
 Port 443

Test if you can reach Github:

Quick test
ssh -T git@github.com

Now you can push, pull and clone as usual 😎