<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I have not tried the port forwarding, but the "magical" ProxyCommad
worked just fine. ;-)<br>
Thanks a lot for your help,<br>
<br>
Jean-Claude<br>
<br>
Satish Balay a écrit :
<blockquote cite="mid:alpine.LFD.2.00.1004131735120.3061@asterix"
type="cite">
<pre wrap="">On Wed, 14 Apr 2010, Benoit Boissinot wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Tue, Apr 13, 2010 at 04:34:31PM -0500, Satish Balay wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Tue, 13 Apr 2010, Benoit Boissinot wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Tue, Apr 13, 2010 at 12:22 AM, Jean-Claude Passy <a class="moz-txt-link-rfc2396E" href="mailto:jcpassy@gmail.com"><jcpassy@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Dear all,
I want to clone a repository from one machine to another. The problem is I
have to go through a gateway, so I cannot type in something like
$ hg clone <a class="moz-txt-link-freetext" href="ssh://name@remotemachine/path/to/folder">ssh://name@remotemachine/path/to/folder</a> .
I don't know how to mix ssh tunneling, so could anyone explain to me how to
proceed ?
</pre>
</blockquote>
</blockquote>
<blockquote type="cite">
<pre wrap="">there might be a better way to do it with a very recent ssh.
</pre>
</blockquote>
<pre wrap="">If you can ssh from 'localhost to gateway' and then from 'gateway to
remotemachine' - then you can setup a ssh over ssh tunnel and use as:
<terminal1>
ssh -L10212:remotemachine:22 gateway [-N]
<terminal2>
hg clone -e 'ssh -p 10212' <a class="moz-txt-link-freetext" href="ssh://localhost//path/to/folder">ssh://localhost//path/to/folder</a>
</pre>
</blockquote>
<pre wrap="">That's more complicated/less convenient than using ProxyCommand :)
</pre>
</blockquote>
<pre wrap=""><!---->
Perhaps this is a bit more compliated to setup. I guess for me
port-forwarding is more understandable than the ProxyCommand/nc
magic.. :)
Satish
</pre>
</blockquote>
</body>
</html>