How to use sudo over SFTP with CyberDuck?

后端 未结 4 562
花落未央
花落未央 2021-02-01 13:53

I\'m copying this question from over here: http://getsatisfaction.com/cyberduck/topics/can_i_use_sudo_over_sftp_with_cyberduck

I am having the same issue and finding it

4条回答
  •  半阙折子戏
    2021-02-01 14:22

    I had this same problem for a really long time, and I had resigned to simply using putty to edit files, or moving them from my home directory.

    Unfortunately this is only a partial answer, as it does not work natively in linux. You might be able to use it in wine though. Turns out it is possible to do this using winscp.

    Setup a new SFTP session in winscp, Setup page 1

    After that, go to the SFTP section of the setup, select a custom SFTP server, and type in the path to the remote sftp-server binary with sudo -s appended before it. For this to work you need to enable running sudo without a password. You can use the whereis command on the remote server to find the path to sftp-server.

    How to retrieve sftp-server path

    Last Step

提交回复
热议问题