SFTP server command line must be shorter than 50 characters

Advertisement

Frank Gruellich
Joined:
Posts:
1

SFTP server command line must be shorter than 50 characters

Hi,

this is my first post and bug report. Please be nice...

I'm using WinSCP 4.2.3 (Build 494) in Commander Style. I'm following the F.A.Q. how to use WinSCP with sudo. The OS running the SSH server is a standard CentOS 5.2 and its SFTP server is located in "/usr/libexec/openssh/sftp-server". The remote user I'm supposed to use is "someotheruser". So I'm trying to write
sudo -u someotheruser /usr/libexec/openssh/sftp-server
in Environment -> SFTP -> Protocol options -> SFTP server. Unfortunately, the input box accepts only up to 50 characters, so the input is truncated after ".../sftp-se". Of course, this does not work. If I create a shorter SFTP server path by symlinking /usr/bin/sftp-server -> /usr/libexec/openssh/sftp-server and use
sudo -u someotheruser /usr/bin/sftp-server
it works. If the username is shorter (eg. someuser) it works, too. However, both are not an option. Also usage without sudo is not possible, as it would break our audit trail. Is this a bug or (undocumented?) feature?

Thanks in advance.

Kind regards,
Frank.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum