Title: How does scp traffic flow between two remote hosts?
Tags: sftp;rsync;scp
Question: If you issue a scp command between 2 remote servers, will the traffic flow directly between the hosts, or will it flow from Remote1 => Local Machine => Remote2?
For example I issue this command on my laptop:
scp ortegagabriel@example.com:/Files ortegagabriel@example.com:/Files


Here is another answer: Newer versions of scp (since 2011) have the option -3 which will route the traffic through your local machine. This is useful if the hosts are on different networks and can't see each other. Found this on SuperUser. From your linked article it seems like normally the hosts will try to connect directly to each other.

Here is another answer: Looks like it can be done.

Here is another answer: If your linux/bsd/unix or Mac do not have the -3 option, just compile the last version from: http://www.openssh.org/portable.html
It is as simple as:
./configure; make ; sudo make install
It will be installed on /usr/local/bin by default. I just did that on my Mac OS X Lion.

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 3, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2010:00:08/04/10', 'FavoriteCount': 2.0, 'PostTypeId': 1, 'Tags': '<sftp><rsync><scp>', 'Title': 'How does scp traffic flow between two remote hosts?', 'ViewCount': 9567, 'id': 3407442, 'user_AboutMe': None, 'user_AccountId': 51369.0, 'user_DisplayName': 'user153466', 'user_Reputation': 229.0, 'user_Views': 11.0, 'user_id': 153466.0}}