git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git protocol over port-forwarding

From
Jakub Narebski <jnareb@gmail.com>
Date
Mar 14, 2007, 23:14 UTC
Message-ID
<et9vkm$2j4$1@sea.gmane.org>
In-Reply-To
<46a038f90703141514q5273e493r87f0ac7f52c1c216@mail.gmail.com>
Martin Langhoff wrote:
Show 24 quoted lines
> On 3/15/07, Bill Lear <rael@zopyra.com> wrote:
>> 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 22

I think it could be done but with _two_ port forwarding, one from git port to ssh port or 5700 port, on your computer (probably reverse tunnel), second from 5700 port to git port... unless you configure git server to use different port...

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Martin LanghoffNext: Bill Lear
Message 5 of 10 in “git protocol over port-forwarding”
  1. Bill LearMar 14, 2007
  2. Julian PhillipsMar 14, 2007
  3. Bill LearMar 14, 2007
  4. Martin LanghoffMar 14, 2007
  5. Jakub NarebskiMar 14, 2007
  6. Bill LearMar 15, 2007
  7. Bill LearMar 15, 2007
  8. Martin LanghoffMar 15, 2007
  9. Julian PhillipsMar 14, 2007
  10. Martin LanghoffMar 14, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.