On Mon, Aug 9, 2010 at 12:22 PM, Rony gnulinuxist@gmail.com wrote:
On Sunday 08 August 2010 09:49 PM, jtd wrote:
On Sunday 08 August 2010 19:57:17 Raj Mathur (राज माथॠर)
wrote:
On Saturday 07 Aug 2010, jtd wrote:
What I want to do is transfer files from one to another without
my client system downloading any files. (both have /public_html folders. The files from one need to be xfered to another)
If you have ssh you should have scp. scp user1@aa.bb.cc.dd:/x/y user2@nn.mm.oo.pp:/z/y
Will this actually transfer between aa and nn without routing the data through the local host? Can someone confirm definitively?
Essentially control tells aa to send data to nn. which is the same as ssh to aa, fire script (which transfers data to nn) and get out leaving script running.
So all data flows only from aa to nn.
I doubt if aa will start a secure connection with nn if keys are with someone else. Has this been tried on fresh machines that have no previous keys stored? What will happen is that the control machine establishes ssh connections with both machines and aa will transfer data to nn *via* the control host through some memory buffer, which the OP does not want to do. This is also a double load on the internet connections. The 2 hosts may have high speed internet grade connections whereas the control host may be just a piddly low speed remote link.
Running a tcpdump on the control host will answer this question.
Regards, Mohan S N