I have 2 Linux machines with a zip file residing on one of them
I am using putty to connect to my Linux files
Is there a way to copy the zip file from one Linux machine to the second
Using the putty textual interface?
If I had a visual interface, maybe I could have opened a browser, and pulled the zip file from one machine to the other, but all I have is putty
I read about the rcp command
It says that I must have a .rhosts file in my login directory
In the example below, 1.2.3.4 is the IP address of the source machine
and 11.22.33.44 is the IP address of the target machine
I invoke the command from the target machine:
rcp 1.2.3.4:/usr/local/apache/htdocs/file.zip 11.22.33.44:/usr/local/apache/htdocs/file.zip
I wait a few seconds and then I get the following error:
Connection refused
for rcp to work --- you need the .rhosts file to exist in the target server as the user authentication/permission is bening done at that end ...
for ssh to work like rcp --- you need to have the ssh keys created in the target server under the correct sub-directory and with the correct permissions ...