Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to load files from github through a firewall is impossibly slow. Any suggestions for workarounds?

Tags:

I'm a little hesitant to post this, as I'm not completely sure what I'm doing. Any help would be wonderful.

I'm on a computer with a firewall/filter on it. I can download files without any difficulty. When I try to clone files from Github, though, the computer just hangs. Nothing happens. It creates a git file in the folder, but the key files don't get loaded in. For context, I'm working on a Rails app, trying to load in Restful Authentication.

Have any of you dealt with this? Any suggestions for getting the clone to work? Disabling the firewall might be an option, but if I can do something without going through that process, I'd appreciate it.

like image 321
charliepark Avatar asked Sep 17 '08 22:09

charliepark


People also ask

How do I allow Github in my firewall?

When trying to login to github over ssh you get this error if you are behind a firewall that block port 22. Luckily there is a solution for that: Smart HTTP. Basically it will use HTTP to pull and push updates to github, thus using the standard SSL (443) port instead of using the blocked SSH port (22).


2 Answers

Github supports cloning using both the git protocol over port 9418 and HTTP over port 80. Using the later is very slow (Reference). You should open port 9418 on your firewall or use HTTP cloning otherwise.

like image 94
zvikara Avatar answered Sep 17 '22 15:09

zvikara


Or... just change the "git://" prefix to "http://"

like image 40
Eric Kramer Avatar answered Sep 16 '22 15:09

Eric Kramer