I\'m using pscp to transfer files to a virtual ubuntu server using this command:
pscp test.php user@server:/var/www/test.php
and I get the erro
I had the same error "pscp: unable to open YourFilePath: permission denied",
check the ownership of the file you are trying to overwrite, you will get this error if you can't overwrite it,
If you don't have control over the remote file, just simply try to rename the file you are trying to move.