Edit the files in WinSCP using sudo?

As a user of group sudo to allow to upload the server configuration files
Using nano to edit the turns, and through the built-in WinSCP editor no.
July 8th 19 at 16:20
2 answers
July 8th 19 at 16:22
In connection settings in WinSCP:
Environment -> SFTP -> Protocol Options:
The SFTP server: sudo /usr/lib/sftp-server
July 8th 19 at 16:24
sudo chown-R www-data:www-data /var/www
(or sudo chown-R USERNAME:www-data /var/www)
find /var/www -type d-exec sudo chmod g+rwxs {} \;

Find more questions by tags SSHUbuntu ServerServers