0

If I am copying file from remotemachine1 to remotemachine2 and I am currently at remotemachine3, will the file from remotemachine1 in background first copy to remotemachine3 and then to remotemachine2?

Update: I am using Linux machines.

1 Answers1

1

If it's about scp OpenSSH secure file copy then the answer is in man 1 scp:

-3
Copies between two remote hosts are transferred through the local host. Without this option the data is copied directly between the two remote hosts. […]

So the answer is no, unless you used -3. The option is useful if the two end hosts cannot communicate directly. Examples: link 1, link 2.

According to the changelog the option was added in OpenSSH 5.7/5.7p1 (2011-01-24).