[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tunnelling a scp connection over multiple host
- To: Darren Tucker <dtucker@zip.com.au>
- Subject: Re: tunnelling a scp connection over multiple host
- From: Andy Isaacson <adi@hexapodia.org>
- Date: Thu, 2 Oct 2003 13:19:49 -0500
- Cc: Markus Friedl <markus@openbsd.org>, RJ45 <rj45@slacknet.com>,misc@openbsd.org
- Content-Disposition: inline
- References: <Pine.LNX.4.21.0309290453060.21789-100000@slacknet.slacknet.com> <20030929111347.GB21802@folly> <3F7973BE.48B368C9@zip.com.au>
- User-Agent: Mutt/1.2.5i
On Tue, Sep 30, 2003 at 10:14:54PM +1000, Darren Tucker wrote:
> Markus Friedl wrote:
> > On Mon, Sep 29, 2003 at 04:59:52AM -0600, RJ45 wrote:
> > > hello,
> > > this is my configuration.
> > >
> > > ssh ssh
> > > HOST A -------> HOST B -------->HOST C
> >
> > hosta$ ssh -L 1234:hostc:22 hostb
> > hosta$ scp -o 'hostkeyalias=hostc' -P 1234 file localhost:xxxx
>
> hosta$ scp -o "ProxyCommand ssh hostb nc hostc 22" file hostc:xxxx
When it gets to this point, I prefer something like
tar cf - foo | ssh hostb 'ssh hostc tar xvf -'
-andy