Re: git protocol over port-forwarding
- From
Martin Langhoff <martin.langhoff@gmail.com>
- Date
- Mar 14, 2007, 22:14 UTC
- Message-ID
- <46a038f90703141514q5273e493r87f0ac7f52c1c216@mail.gmail.com>
- In-Reply-To
- <17912.29057.435478.123662@lisa.zopyra.com>
On 3/15/07, Bill Lear <rael@zopyra.com> wrote:
Show 16 quoted lines
> On Wednesday, March 14, 2007 at 21:05:37 (+0000) Julian Phillips writes: > >... > >I don't think there is anything that needs changing with the git daemon > >... or at least I was able to successfully clone over an SSH port forward. > > > >I did get the same error as you originally, but this was due to SSH > >failing to setup the tunnel connection (checking the logs showed that I > >had got the hostname in the forward wrong). > > Ok, so were you doing something like this: > > % git clone git://localhost:5700/project > > etc.? and not using the ssh protocol, like this: > > % git clone ssh://...
I think pure port forwarding won't support git+ssh. For that you need the proxycommand approach I mentioned. Actually, I think there's a more elegant approach just saying
Host fooproxied
ProxyCommand ssh -q -a foo.yourdomain nc -q0 %h 22cheers,
m