I have an Ubuntu server to which I am connecting using SSH.
I need to upload files from my machine into /var/www/ on the server, the files in /var/www/ are owned by root.
Using PuTTY, after I log in, I have to type sudo su and my password first in order to be able to modify files in /var/www/.
But when I am copying files using WinSCP , I can't create create/modify files in /var/www/, because the user I'm connecting with does not have permissions on files in /var/www/ and I can't say sudo su as I do in case of an ssh session.
Do you know how i could deal with this ?
If I was working on my local machine, I would call gksudo nautilus but in this case I only have terminal access to the machine.