You know the drill, you’re working on a network and you push/pull from git.

git push -u origin master
ssh: connect to host port 22: Operation timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

You see the dreaded timeout and realise…

They’ve blocked port 22?

Fear not.


Use port 443 instead. for ssh? Yes!

edit ~/.ssh/config and append the following

  Port 443

Save, exit and retry.

If port 443 is blocked. Fetch coffee.