Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use sudo over SFTP with CyberDuck?

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 hard to find an answer:

I am using Cyberduck over SFTP. I can connect and browse files fine, but when I try to upload, I get a permissions error. Web host says I need to use the 'sudo' command. I know how to do this via Terminal, but it is possible to to tell Cyberduck to use sudo?

Please don't tell me to use root because:

What if you don't have root access or don't want to enable root access?

like image 352
Jack Benning Avatar asked Aug 01 '10 09:08

Jack Benning


People also ask

How do I use Cyberduck SFTP?

Setting up Cyberduck Now that you've downloaded Cyberduck and have your SFTP Credentials open up the program. Once you've got things open up, click the Open Connection button in the top right. For connection type dropdown, select SFTP (SSH File Transfer Protocol). Click Connect.

Can you SSH with Cyberduck?

Public Key Authentication Using SSH Agent When connecting to a SSH server, Cyberduck will lookup matching private keys from the SSH agent when attempting to authenticate with the server if no password is available and no explicit private key to use is configured in the bookmark.


1 Answers

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

like image 126
Kin Avatar answered Oct 20 '22 01:10

Kin