dilip.patel has asked for the wisdom of the Perl Monks concerning the following question:
Is there any way to directly copy file from server 1 to serve 2 without doing login to any of that server? I had tried rcp command but it was not working.
So, I am using this method , doing login to server 1 with ssh from my machine. And then doing scp from server 1 to server 2. If there is any other way to do it then please suggest.
The same thing I want to implementing by script, which will run on my machine and do login to server 1 and copy file from server 1 to server 2. Both server are password protected and I know password of it. I am able to do login to server 1 with "Net::OpenSSH" but I am not find any option in Net::OpenSSH to copy file from server 1 to server 2. Please help.
|
|---|