Re: Port forwarding
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Jun 12, 2007, 18:08 UTC
- Message-ID
- <alpine.LFD.0.98.0706121103230.14121@woody.linux-foundation.org>
- In-Reply-To
- <466EBB1B.9060405@gmail.com>
On Tue, 12 Jun 2007, Claudio Scordino wrote:
> > how can I specify the port in git-clone when cloning from a server running > git-daemon ?
Just doing
git clone git://hostname:port/repo/path/name
should be fine.
Show 7 quoted lines
> I need to set port forwarding from a public server to a private server. > The public server, however, already hosts a git-daemon on port 9418. > So, I have to use a different port for the forwarding. > > My idea is to let the public server listen on a different port (e.g. 9419) and > make it redirect all the incoming connections to the port 9418 of the private > server.
I would argue that it probably makes more sense to make the _private_ server listen to another port (fewer people who need to use the :<port> syntax). But hey, that's a matter of taste.
> However, I don't know how make git-clone go on a port different than the > default (9418).
See above. The obvious thing should "just work".
Linus