Problem with sudo -s and SFTP
I have followed the guide on https://winscp.net/eng/docs/faq_su and it works with my Debian Etch server as long as I log in with SCP but as soon as I want to use SFTP instead of SCP I cannot get su rights.
When I use SFTP only the "Default" SFTP server option works but then I miss the su rights. When I try to use "sudo /usr/bin/sftp" (where sftp is located from my OpenSSH installation) WinSCP says "Cannot initialize SFTP protocol. Is the host running a SFTP server?". I have tried several changes in the sshd_config but always the same problem.
Currently I have to use (slow) SCP if I want to have the su rights.
How can I get them as well with SFTP?
Thanks in advance.
When I use SFTP only the "Default" SFTP server option works but then I miss the su rights. When I try to use "sudo /usr/bin/sftp" (where sftp is located from my OpenSSH installation) WinSCP says "Cannot initialize SFTP protocol. Is the host running a SFTP server?". I have tried several changes in the sshd_config but always the same problem.
Currently I have to use (slow) SCP if I want to have the su rights.
How can I get them as well with SFTP?
Thanks in advance.