public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail•com>
To: Mike Hommey <mh@glandium•org>
Cc: Alex Riesen <raa.lkml@gmail•com>, git@vger•kernel.org
Subject: Re: Help! My ISP blocks repo.or.cz. How to push changes?
Date: Tue, 13 Jan 2009 00:43:04 +0100	[thread overview]
Message-ID: <200901130043.04772.jnareb@gmail.com> (raw)
In-Reply-To: <20090112122337.GA7262@glandium.org>

On Mon, 12 January 2009, Mike Hommey wrote:
> On Mon, Jan 12, 2009 at 12:13:44PM +0100, Jakub Narebski <jnareb@gmail•com> wrote:

>> Currently I have the folowing in my ~/.ssh/config:
>> 
>>   # TP S.A. blocks repo.or.cz
>>   Host repo.or.cz
>> 	NoHostAuthenticationForLocalhost yes
>> 	HostName localhost
>> 	Port 2222
>> 
>> and I can simply use "git push repo" without any changes.
>> But I have to run 
>> 
>>  $ ssh -f -N -L 2222:repo.or.cz:22 jnareb@host•example.com
>> 
>> first. Is there any way to automate this?
> 
> Something like the following should do the trick:
> Host repo.or.cz
> 	ProxyCommand ssh jnareb@host•example.com nc %h %p
> 
> You will need nc (netcat) installed on the host.example.com server, though.

I assume that is both in place of above ~/.ssh/config configuration,
and making unnecessary port forwarding (ssh -L) invocation, isn't it?

P.S. What should I put in core.gitProxy to make it possible to fetch
via git:// protocol from repo.or.cz?

-- 
Jakub Narebski
Poland

  reply	other threads:[~2009-01-12 23:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-12  1:46 Help! My ISP blocks repo.or.cz. How to push changes? Jakub Narebski
2009-01-12  9:17 ` Alex Riesen
2009-01-12 11:13   ` Jakub Narebski
2009-01-12 11:20     ` Luciano Rocha
2009-01-12 11:25     ` Asheesh Laroia
2009-01-12 23:39       ` Jakub Narebski
2009-01-13 20:13         ` Asheesh Laroia
2009-01-12 12:23     ` Mike Hommey
2009-01-12 23:43       ` Jakub Narebski [this message]
2009-01-13  0:59         ` Markus Heidelberg
2009-01-14 13:55         ` Help! My ISP blocks repo.or.cz. How to push changes? (a solution) Jakub Narebski
2009-01-14 17:18           ` Asheesh Laroia
2009-01-12  9:21 ` Help! My ISP blocks repo.or.cz. How to push changes? Asheesh Laroia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200901130043.04772.jnareb@gmail.com \
    --to=jnareb@gmail$(echo .)com \
    --cc=git@vger$(echo .)kernel.org \
    --cc=mh@glandium$(echo .)org \
    --cc=raa.lkml@gmail$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox