Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Thanks for sharing your solution.
DaveTheDane

The problem was the -c. This worked:
sudo  -u another  /usr/libexec/openssh/sftp-server
DaveTheDane

login with sudo -u another (i.e. change to a non-root user)

My WinSCP sessions are running the following executable:
/usr/libexec/openssh/sftp-server

(determined by ps -ef | grep 'ftp')

From a PuTTY session I can change (to a non-root) user with the following command:
sudo -u another -i

I'd like to do that with WinSCP.
Under "Advanced Settings" I configured "SFTP Server" as follows:
sudo -u another -c /usr/libexec/openssh/sftp-server

I get the following error message:
Cannot initialize SFTP protocol. Is the host running an SFTP server?

Any ideas what I'm doing wrong?