need to use git behind firewall: trying ssh tunneling

Posted by Jacko on Stack Overflow See other posts from Stack Overflow or by Jacko
Published on 2010-03-28T13:18:47Z Indexed on 2010/03/28 13:23 UTC
Read the original article Hit count: 383

Filed under:
|
|
|

Hi,

I am trying to use ssh port forwarding to defeat corporate firewall:

ssh git@GIT_SERVER -L9418:GIT_SERVER:9418

and in another terminal I run

git clone git://localhost:repositories/project.git

But I get the following error:

Initialized empty Git repository in /Users/aboxer/tmp/glucosia/.git/ fatal: Unable to look up localhost (port repositories) (nodename nor servname provided, or not known)

Thanks!

© Stack Overflow or respective owner

Related posts about git

Related posts about ssh