Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to access a git repository from behind a proxy
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cubancigar11
Guru
Guru


Joined: 10 Jan 2005
Posts: 340

PostPosted: Fri Apr 14, 2006 3:23 pm    Post subject: How to access a git repository from behind a proxy Reply with quote

I want to access a git repository from behind a proxy (which requires authentication). How to do that?
Back to top
View user's profile Send private message
Mickael
Advocate
Advocate


Joined: 05 Sep 2005
Posts: 2387
Location: ~Belfort! - France - EU

PostPosted: Tue Apr 22, 2008 11:11 am    Post subject: Reply with quote

Hello,

I've got the same problem. Maybe it would be work with this solution :
http://lkml.org/lkml/2006/2/26/207

Quote:
I know I'm comming kinda late, but I'm using:

export GIT_PROXY_COMMAND=/usr/local/bin/proxy-cmd.sh

and proxy-cmd.sh is just single-line command glued from what I found
available in /bin:

#! /bin/bash

(echo "CONNECT $1:$2 HTTP/1.0"; echo; cat ) | socket
proxy.ourcompany.com 3128 | (read a; read a; cat )
Replace socket's arguments 'proxy.ourcompany.com 3128' with your http
proxy. Fortunately our proxy does not see anything wrong with git's port.
Best regards,
Petr Vandrovec
-


I'don't get the socket command, where I can find it?
_________________
À LIRE : COMMENT POSTER ET OBTENIR DE L'AIDE ?
Qui suis-je ? Bon j'ai relu, comme d'habitude, je suis bon a rien le vendredi
Qui suis-je ? Je ne serai jamais modo
Back to top
View user's profile Send private message
cubancigar11
Guru
Guru


Joined: 10 Jan 2005
Posts: 340

PostPosted: Tue Apr 22, 2008 11:59 am    Post subject: Reply with quote

Well... now I work at different place so I don't have this problem anymore :) Even if I had, the given solution wouldn't work because CONNECT was banned from my proxy. Probably a transparent proxy on my machine could have helped...

But anyway... the "socket" command is not present on my computer either, and Google doesn't help :(
Back to top
View user's profile Send private message
Ragas
n00b
n00b


Joined: 17 Jun 2008
Posts: 5

PostPosted: Tue Jun 17, 2008 6:15 pm    Post subject: Reply with quote

I have the same problem. I think it's a really annoying one.

The "socket" command from this HowTo is only present in unbuntu. I haven't found anything similar for Gentoo.

The only way seems to be setting up a transparent proxy.

This would be the only programm under Linux that does not work together with my Proxy. Weak.

I would really appriciate it if someone was able to find another solution.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum