* Port forwarding
@ 2007-06-12 15:26 Claudio Scordino
2007-06-12 18:08 ` Linus Torvalds
2007-06-12 18:12 ` Alex Riesen
0 siblings, 2 replies; 3+ messages in thread
From: Claudio Scordino @ 2007-06-12 15:26 UTC (permalink / raw)
To: git
Hi all,
how can I specify the port in git-clone when cloning from a server running
git-daemon ?
The issue is the following.
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.
However, I don't know how make git-clone go on a port different than the default
(9418).
Many thanks in advance,
Claudio
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Port forwarding
2007-06-12 15:26 Port forwarding Claudio Scordino
@ 2007-06-12 18:08 ` Linus Torvalds
2007-06-12 18:12 ` Alex Riesen
1 sibling, 0 replies; 3+ messages in thread
From: Linus Torvalds @ 2007-06-12 18:08 UTC (permalink / raw)
To: Claudio Scordino; +Cc: git
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.
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Port forwarding
2007-06-12 15:26 Port forwarding Claudio Scordino
2007-06-12 18:08 ` Linus Torvalds
@ 2007-06-12 18:12 ` Alex Riesen
1 sibling, 0 replies; 3+ messages in thread
From: Alex Riesen @ 2007-06-12 18:12 UTC (permalink / raw)
To: Claudio Scordino; +Cc: git
Claudio Scordino, Tue, Jun 12, 2007 17:26:19 +0200:
>
> However, I don't know how make git-clone go on a port different than the
> default (9418).
>
git clone git://server:port/~cloud/project/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-06-12 18:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-12 15:26 Port forwarding Claudio Scordino
2007-06-12 18:08 ` Linus Torvalds
2007-06-12 18:12 ` Alex Riesen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox