Re: Transferring files between servers on a private network?

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On 09/12/2020 17:48, Steve Dondley wrote:
Though the command works and transfers files between machines, I'm not sure
if it does it strictly over the private network. How can I be sure the file
isn't going from B to A over the private network and then down to my local
machine over the public network and then back up to A over the public
network and then back to A on the private network?

It *is* going up to your local client and back again: -3 (third party copy) does exactly that. It makes separate ssh connections to the two hosts (which is why the ProxyCommand is required in your case), slurps the file from the left-hand host and uploads it to the right-hand host.

If you don't want to do that, then omit the -3.  Then it will login to left-host, and instruct it to copy the given file to right-host.  However you may need to use agent forwarding so that left-host can authenticate to right-host.

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev




[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux