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

Re: core.gitproxy and non-git protocols

From
Jakub Narebski <jnareb@gmail.com>
Date
Aug 4, 2007, 00:33 UTC
Message-ID
<f90hhb$3tg$1@sea.gmane.org>
In-Reply-To
<ee77f5c20708012221j4d75ff0dl8fbf16cdaf1401bd@mail.gmail.com>
[Cc: David Symonds <dsymonds@gmail.com>, gmane.comp.version-control.git]
David Symonds wrote:
Show 5 quoted lines
> I have a situation where I'd like to push to a remote git repository
> on a machine that is a little weird to access, so I need two different
> types of ssh'ing to reach it depending on my location. That is easily
> scriptable, which is how I did it with SVN (ended up with a
> svn+voltron:// protocol), but is not currently possible with git.

See http://git.or.cz/gitwiki/GitTip, section "How to push/pull via ssh to host behind gateway?". It describes two solutions: first, using ProxyCommand option of ssh and netcat utility on gateway, second via ssh tunnel set up.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Shawn O. Pearce
Message 5 of 5 in “core.gitproxy and non-git protocols”
  1. David SymondsAug 2, 2007
  2. Shawn O. PearceAug 2, 2007
  3. Jakub NarebskiAug 4, 2007
  4. Shawn O. PearceAug 4, 2007
  5. Jakub NarebskiAug 4, 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.