Here you can see sftp server binary is located at `/usr/libexec/openssh/sftp-server`
Now open winSCP and click `Advanced` button to open up advanced settings.
![winSCP advance settings][2]
winSCP advance settings
It will open up advanced setting window like one below. Here select `SFTP `under `Environment` on left hand side panel. You will be presented with option on right hand side.
Now, add SFTP server value here with command `sudo su -c` here as displayed in screenshot below –
![SFTP server setting in winSCP][3]
SFTP server setting in winSCP
So we added `sudo su -c /usr/libexec/openssh/sftp-server` in settings here. Now click Ok and connect to server as you normally do.
After connection you will be able to transfer files from directory where you normally need sudo permission to access.
That’s it! You logged to server using winSCP and sudo access.