I am trying to use "rcp" command to copy files from a Unix computer to a Windows Server 2008 R2 computer. Somehow, it fails to copy anything.
For example, I am using the following command to copy the .rhosts file from the Unix computer to the Windows computer:
C:\Windows\posix.exe /u /c /bin/rcp <IP-address>.<user>:/u/<user>/.rhosts \temp.
There is no error message. The only thing that I can tell it has failed is the simple fact that the files haven't been copied from Unix.
I don't have any problem running "rsh" command in the same Windows computer. I would think that they should both work or they should both fail. I didn't expect to see one works but the other fails. Moreover, I have no problem running both "rsh" and "rcp" in a Windows Server 2003 R2 computer. Therefore, I know that the Unix side is OK. There must be something wrong in the Windows side.
I have checked the EventViewer, and there is no error message.
I have run "Process Monitor" in Windows Server 2008 R2 to check the events from running both "rsh" and "rcp" commands. I cannot find anything unusual. Actually the recorded events from both "rsh" and "rcp" look almost the same (of course the process-IDs are different).
I have also tried this in a Windows Server 2008 (not R2) computer. But the result is the same as the Windows Server 2008 R2 - "rsh" works, "rcp" fails.
Can someone help me with this? Thanks in advance.
Jay Chan