SSH can't do menage a trois?
Kenneth E. Lussier
ken.lussier at zuken.com
Tue Sep 10 14:29:31 EDT 2002
If C is acting as a gateway between L and R, and forwarding packets
between the two networks, from C, you should be able to do something
like:
ssh right "scp some/directory/files username at left:/destination"
This will give you a shell on Right, then issue the command to scp data
to Left, then exit.
C-Ya,
Kenny
On Tue, 2002-09-10 at 14:16, Michael O'Donnell wrote:
>
> I have three machines:
>
> - system C(entral) is connected to two LANs.
> - system L(eft) is on one LAN connected to C.
> - system R(ight) is on the other LAN connected to C.
>
> L and R have no knowledge of each other. I can
> easily establish SSH sessions and scp files (inbound
> or outbound) between C and L, or between C and R,
> but it seems that I can't, while operating from C,
> say something like:
>
> scp L:someFile R:someDirectory
>
> ...because scp doesn't act as a go-between (as I had
> originally expected it to do) but instead constructs
> and transmits another scp command line for execution
> on L, and that command fails because it refers to R
> which, as I said, L doesn't recognize.
>
> I can hack around this in a number of ways (like
> issuing two separate scp commands with the files
> temporarily residing on C's disk, or by spawning a
> tar on L and one on R and pushing the data from one to
> the other via two pipelined ssh's on C, etc, etc) but
> I wonder if there is some more elegant approach...?
>
> _______________________________________________
> gnhlug-discuss mailing list
> gnhlug-discuss at mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
--
----------------------------------------------------------------------------
"Tact is just *not* saying true stuff" -- Cordelia Chase
Kenneth E. Lussier
Sr. Systems Administrator
Zuken, USA
PGP KeyID CB254DD0
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xCB254DD0
More information about the gnhlug-discuss
mailing list