Google Plus

How to access a git repository from behind a proxy which requires authentication

Written by Mel Kham on . Posted in Frequently Asked Questions

Question : How to access a git repository from behind a proxy which requires authentication

Answer :

Basically the steps are:
1 - sudo apt-get install socket
2 – in your home directory, put a shell script called “proxy-cmd.sh”
containing (replace YOUR_PROXY and YOUR_PROXY_PORT with your own proxy
parameters):
#! /bin/bash
(echo “CONNECT $1:$2 HTTP/1.0″; echo; cat ) | socket YOUR_PROXY
YOUR_PROXY_PORT | (read a; read a; cat )
3 – chmod +x proxy-cmd.sh
4 – export GIT_PROXY_COMMAND= /proxy-cmd.sh

Note: you can export GIT_PROXY_COMMAND in your ~/.bashrc file to make
this permanent 

For questions please refer to our Q/A forum at : http://ask.unixmen.com

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

Edson Carlos

|

In debian no found. I need link download install in linux debian

jacky can

|

You can actually unzip your secret archive by leaving out the -t option, instead using:

unzip newPhoto.jpg

DragonFartOutLoud

|

it went to china.

DragonFartOutLoud

|

great review! i’ve been using it as my main OS since Beta 1 release. its been a awesome ride so far :)

jet li

|

i try the method, and i unzip the image contain zip secret, i dont find the file that i was hide, where it go? and how to open it? :s

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .