From: Mike Hommey <mh@glandium.org>
To: Jakub Narebski <jnareb@gmail.com>
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: Mon, 12 Jan 2009 13:23:38 +0100 [thread overview]
Message-ID: <20090112122337.GA7262@glandium.org> (raw)
In-Reply-To: <200901121213.45858.jnareb@gmail.com>
On Mon, Jan 12, 2009 at 12:13:44PM +0100, Jakub Narebski <jnareb@gmail.com> wrote:
> Alex Riesen wrote:
> > 2009/1/12 Jakub Narebski <jnareb@gmail.com>:
>
> > > Do you have any suggestions to bypass this block for git? I have access
> > > to Linux shell account (no root access, though) which doesn't have
> > > problems with repo.or.cz, so I think I could set up SSH tunnel: but
> > > how? And what to do with access via git:// - move to SSH too?
> >
> > See man ssh, look for -L. It works for arbitrary ports, so you can redirect
> > git:// port to anywhere. Same for push over ssh, just give another port when
> > connecting.
>
> 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.
Mike
next prev parent reply other threads:[~2009-01-12 12:25 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 [this message]
2009-01-12 23:43 ` Jakub Narebski
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=20090112122337.GA7262@glandium.org \
--to=mh@glandium.org \
--cc=git@vger.kernel.org \
--cc=jnareb@gmail.com \
--cc=raa.lkml@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).