pscp: how to copy a file from a windows machine to a non-home location on another windows machine?

Posted by help on Super User See other posts from Super User or by help
Published on 2014-05-28T14:41:28Z Indexed on 2014/05/28 15:34 UTC
Read the original article Hit count: 124

Filed under:
|
|

I want to copy a file from C:\temp on MachineA to C:\final on MachineB.

I tried to use the following command, but it gave me an error (permission denied):

 C:\PROGRA~1\putty\pscp.exe -i C:\PROGRA~1\cwRsync\home\rcadmin\.ssh\id_rsa_private.ppk [email protected]:C:\final\test.txt C:\temp\test.txt

It turned out I can only access C:\users\direcpc in my source computer. So if I put the file in C:\users\direcpc\text.txt, then it would work:

 C:\PROGRA~1\putty\pscp.exe -i C:\PROGRA~1\cwRsync\home\rcadmin\.ssh\id_rsa_private.ppk [email protected]:/test.txt C:\temp\test.txt

But I want to access any location on my source computer instead of just my user home directory, is there a way to do this?

© Super User or respective owner

Related posts about file-transfer

Related posts about scp