Search This Blog

Wednesday, June 04, 2008

Configuring Cygwin to use proxy server

Today I was trying to setup ACPI-CA source tree in my computer using the following command

git clone http://www.acpica.org/repos/acpica.git

but it gave me error when connecting to the site. I knew it was problem with my cygwin network settings. Since I have a proxy server in between, connections internet was failing.

Googleing internet for how to configure cygwin to use proxy didn’t yield any result. Two of my friends with Linux knowledge advised me to set an environment variable (http_proxy) to connect. After exporting it, everything worked fine.

export http_proxy=http://username:password@host:port/

7 comments:

Anonymous said...

I am facing a problem with git.
"warning: remote HEAD refers to nonexistent ref, unable to checkout."
I googled a lot, but could not find any solution to the above. I suspected the proxy settings and made changes as per your suggestion, but that doesn't help.
do you have any idea what else I could be doing wrong?

Kalyan

Samuel said...
This comment has been removed by the author.
Anonymous said...

If you need authentification and if your password contains a special char :

git config --global http.proxy http://login:'pa$$word'@proxyhttp:8080

NB : simple quote are required

Anonymous said...

Anonymous's solution (--global http.proxy) worked for me. Exporting the env var didn't :(

No idea how to get things to use a proxy over the regular git protocol (rather than http)

Anonymous said...

Hi!

I am a noobie in cygwin, linux, networks; I frequently need to connect to some machines using ssh, but for the next 6months I won't be able to access them except if I manage to connect to them through a proxy. Can you tell me step-by-step how you set an environment variable, and how you export it, and if I'm not asking to much, how to connect? (ssh ..? abc@xyz)

Thank you very much!

Julia David said...

No doubt your blog article is great to me and most importantly it gives me information about my related issue.
Torrent Downloads UK proxy

kevin said...

can you explain this a bit better please?

export http_proxy=http://username:password@host:port/

I have tried this on cygwin:
export http_proxy=http://localhost:53128

but not sure how to include my username and p/w in it.

this is what I have for git:
$ git config --global http.proxy
http://localhost:53128