Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- defeated by optmisation!
October 19, 2007, 9:26 am
rate this thread
machines 'A' and 'Z' can both be seen from machine 'M',
but machine 'A' cannot see machine 'Z'.
I do NOT have access/authority to change this.
I do have user level access and logins
for all 3 machines.
In order to transfer data, I logged on to machine
'M' and used scp thus:
scp user1@A:/path/file.txt user2@Z:/path
The command failed.
A little probing revealed that scp had
attempted to initiate a direct copy from A to Z,
which is not (in fact) possible.
Now, I can see where this optimisation is desirable.
If the links between M and A,Z were slow,
but the link between A and Z were swift,
what SCP is doing is very fine
(e.g. user on a remote dialup initiating
transfer between 2 servers)
Is there a way for me to (conveniently) proceed,
or do I require a "new" flag?
- all mail refused
October 19, 2007, 10:33 pm
Re: defeated by optmisation!
on M you could start 2 ssh commands piped together
ssh user1@A tar cf - /path/file.txt | ssh user2@Z tar xvof -
(which would be nicer if you could avoid the absolute pathname)
See the rsh and tar man pages for issues with this approach -
involving buffering and standard streams.
Unfortunately you cannot do
rsync -e ssh -tvv A:/path/ Z:/path/
Elvis Notargiacomo master AT barefaced DOT cheek
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum