[petsc-dev]   How to compose a git URL for going through 2 machines

Nystrom, William David wdn at lanl.gov
Thu Nov 6 11:58:03 CST 2014


Checked in to this a bit and the version of openssh being used in
my situation is 5.3.x and is not something I can control.

Dave

--
Dave Nystrom
LANL HPC-5
Phone: 505-667-7913
Email: wdn at lanl.gov
Smail: Mail Stop B272
       Group HPC-5
       Los Alamos National Laboratory
       Los Alamos, NM 87545

________________________________
From: Nystrom, William David
Sent: Wednesday, November 05, 2014 1:45 PM
To: Åsmund Ervik; petsc-dev at mcs.anl.gov
Cc: Nystrom, William David
Subject: RE: Re:  How to compose a git URL for going through 2 machines

Thanks.  I'll try that as well.

Dave

--
Dave Nystrom
LANL HPC-5
Phone: 505-667-7913
Email: wdn at lanl.gov
Smail: Mail Stop B272
       Group HPC-5
       Los Alamos National Laboratory
       Los Alamos, NM 87545

________________________________
From: Åsmund Ervik [asmund.ervik at ntnu.no]
Sent: Wednesday, November 05, 2014 1:21 PM
To: Nystrom, William David; petsc-dev at mcs.anl.gov
Subject: Re:  How to compose a git URL for going through 2 machines


Hi,

Just to expand on the ssh proxy advice: openssh versions >= 5.4 (released march 2010) have this feature built-in, without needing netcat. This solution is less prone to timeouts in my experience. The syntax is then

ProxyCommand ssh -W %h:%p intermediate-server.org

Also, ssh aliases in .ssh/config is a great feature, as well as specifying per-server usernames. Then "ssh wdn at red-wrtr.lanl.gov" can be just "ssh red" or whatever you wish.

Regards,
Åsmund

Sent from my VT-102

> Date: Wed, 5 Nov 2014 13:51:24 -0600
> From: Jason Sarich <jason.sarich at gmail.com>
> To: "Nystrom, William David" <wdn at lanl.gov>
> Cc: "petsc-dev at mcs.anl.gov" <petsc-dev at mcs.anl.gov>
> Subject: Re: [petsc-dev] How to compose a git URL for going through 2
>         machines
> Message-ID:
>         <CAFcybMkNEzUr+RQq3-4JQgWh0f8TX+hHxzBqCRsa2_6+msYsug at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Dave,
>
> There may be more elegant or robust solutions, I set up a proxy as in
>
> http://backdrift.org/transparent-proxy-with-ssh
>
> which automatically redirects the ssh connection
>
> Jason
>
>
> On Wed, Nov 5, 2014 at 1:42 PM, Nystrom, William David <wdn at lanl.gov> wrote:
>
> > I was wondering if anyone might know the solution to a problem I am having
> > with
> > composing a git URL for cloning a git repo that is two machines away.
> >
> > I'm trying to execute the following git command:
> >
> > git clone ssh://
> > wdn at red-wtrw.lanl.gov/lu-fe1.lanl.gov/usr/projects/artab/users/wdn/repos/git/petsc
> >
> > I've also tried the following:
> >
> > git clone ssh://wdn@red-wtrw.lanl.gov:l
> > u-fe1.lanl.gov/usr/projects/artab/users/wdn/repos/git/petsc
> >
> > And also
> >
> > git clone ssh://wdn@red-wtrw.lanl.gov:lu-fe1.lanl.gov:
> > /usr/projects/artab/users/wdn/repos/git/petsc
> >
> > Basically, I have to go through a gateway machine running a restricted
> > shell
> > to get to a machine which mounts the filesystem where my git repo is
> > located.
> > Each of the above commands fail.
> >
> > However, I can run the following scp command successfully:
> >
> > scp -p file_name wdn at red-wtrw.lanl.gov:lu-fe1.lanl.gov:
> > /usr/projects/artab/users/wdn
> >
> > So I'm wondering if there is a way to chain together two machines in a git
> > URL like I can
> > with scp or whether there is some fundamental reason why this just will
> > not work.  Does
> > anyone know if what I am doing is possible and if so, how?  Or do I have
> > to set up and
> > use an ssh tunnel?
> >
> > Thanks,
> >
> > Dave
> >
> > --
> > Dave Nystrom
> > LANL HPC-5
> > Phone: 505-667-7913
> > Email: wdn at lanl.gov
> > Smail: Mail Stop B272
> >        Group HPC-5
> >        Los Alamos National Laboratory
> >        Los Alamos, NM 87545
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20141105/6a910af4/attachment.html>
>
> ------------------------------
>
> _______________________________________________
> petsc-dev mailing list
> petsc-dev at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/petsc-dev
>
>
> End of petsc-dev Digest, Vol 71, Issue 16
> *****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20141106/fcaffda0/attachment.html>


More information about the petsc-dev mailing list