"You can authenticate with keys" wasn't the punchline I was expecting but perhaps if I had noticed the domain I may have set my expectations differently.
If you copy a file using this method from host B to host C by issuing an scp command on host A, do the bits go directly from host B to host C? or do they go through host A on their way to host C ?
I suspect the latter is what happens on Windows network fileshares, because it takes significantly longer to perform a file transfer from \\hostB to \\hostC while in \\hostA than just doing it direct from \\hostB or \\hostC.
What happens in linux behind the scenes for such 3-party scp transfers?
-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. Note that this option disables the
progress meter.Any technology demonstrated to a sufficiently unsophisticated audience is indistinguishable from sufficiently advanced technology, which is indistinguishable from magic.
~~ Receiving system `# nc -l -p $arbitraryPort > /path/to/file `
~~ Sending system `# cat /path/to/file | nc $receivingSystemIP -p $arbitraryPort `
eg: `# nc -l -p 9669 > /home/user/staging/httpd.conf ` `# cat /etc/httpd/httpd.conf | nc 10.50.50.1 -p 9669 `
This method is a useful feather to have in one's cap when used in combination with tar and Pipeviewer `pv`.
I've used this several times doing a backup of a large database and when I don't have enough space locally to hold the copy.