Re: defeated by optmisation!



bugbear <bugbear@xxxxxxxxxxxxxxxxxxxxxxxxx> writes:

I have a situation where, due to VPNs, routing, gating, etc
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.

Yes, that is what it does.



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?

scp A:filename /tmp/filename
scp /tmp/filename Z:/path/to/filename


.



Relevant Pages

  • Re: Question about "SCP" command
    ... > We have more than 100 RedHat 7.2 servers running. ... Now it's time to change the ROOT password for them. ... > But I don't know how to use SCP at this situation. ... If you need to propagate this and you haven't already put SSH keys in place ...
    (comp.os.linux.security)
  • Re: Question about "SCP" command
    ... > We have more than 100 RedHat 7.2 servers running. ... Now it's time to change the ROOT password for them. ... > But I don't know how to use SCP at this situation. ... If you need to propagate this and you haven't already put SSH keys in place ...
    (comp.os.linux.security)
  • Re: secure move using scp?
    ... >>is there some flag to the command line 'scp' that deletes the source ... > First, use rsync instead of scp, this way you don't transfer it if it's ... Also, rsync has an archive flag ...
    (comp.security.ssh)
  • Re: remote backups: SCP or RSYNC or -?
    ... > Can anyone recommend a good tool for backing up remote servers? ... > already run SSH, so SCP does almost all I need. ... > intelligent version of the SCP client would be ideal. ... recover individual files and dump will give me full and incremental ...
    (comp.unix.bsd.freebsd.misc)
  • Copy with SCP - low performance
    ... I am using scp to copy large amount of small files between 2 servers ... with a firewall in the middle, but the copy takes all CPU, this is the ... the top comand shows 98% free cpu before the scp, ...
    (Fedora)