Using pscp and getting permission denied
Posted
by
Espen
on Super User
See other posts from Super User
or by Espen
Published on 2010-12-21T19:29:14Z
Indexed on
2010/12/21
19:56 UTC
Read the original article
Hit count: 285
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 error permission denied. If I try to transfer to the folder /home/user/ I have no problems.
I guess this has to do with that the user I'm using doesn't have access to the folder /var/www/. When I use SSH I have to use sudo to get access to the /var/www/ path - and I do.
Is it possible to specify that pscp should "sudo" transfers to the server so I can get access to the /var/www/ path and actually be able to transfer files to this folder?
© Super User or respective owner