Ted
If M1 copies the file from M2 to M3 then the data comes all the way
to M1 and all the way back.
You can, within the shell of the ssh to M2, perform an ssh direct
from M2 to M3. It's just a matter of getting the shell command right
and arranging the keys so that can happen without a password.
In shell I would try
M1: ssh M2 "scp <src-filename> M3:<dst-filename>"
Getting the security right depends on the security model. Even on the
highest security models it is possible. Authentication can be passed
down the ssh tunnel.
David
At 16:25 -0700 2/8/06, Ted Zeng wrote:
Hi,
I have one more question.
My perl script on one Mac in my office by ssh connects to another Mac (let
me name it M2) in a very far away place, With the network speed is only
about 20k/s or even slower.
Then, the perl script mounts another Mac(M3) to that Mac (M2). M2 and M3 are
local to each other, that means the network speed between them is very fast.
Then, the perl script copies some files from M2 to M3 through commands(cp)
on the ssh shell. Lets say, it is 'cp /Volumes/M2/archive.txt
/Volumes/M3/archive.txt '.
My question is : does the file data goes through the network between M2 and
my perl script's machine here? Or they just go through their (M2,M3) local
network?
I could test the timing myself, but I still won't understand how it work
behind.
Ted Zeng
--
David Ledger - Freelance Unix Sysadmin in the UK.
Chair of HPUX SysAdmin SIG of hpUG technical user group (www.hpug.org.uk)
[EMAIL PROTECTED]
www.ivdcs.co.uk