5

I want to use WinSCP to connect to the Raspberry Pi standard SFTP server. I also need to have root access. How can I do this without logging in as root (using sudo)?

0

1 Answer 1

7

This is easy. By default the stfp-server of a Raspberry Pi is located at: /usr/lib/sftp-server, so we need to get WinSCP to execute it with sudo.

  • Go to your WinSCP profile (Session > Sites > Site Manager)
  • Click on Edit > Advanced... > Environment > SFTP
  • Insert sudo su -c /usr/lib/sftp-server at "SFTP Server"
  • Save and connect
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.