[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tunnelling a scp connection over multiple host



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