Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using Transmit.app (in Mac) to sftp to my Ubuntu server. Is there any way to gain superuser permission so that I can remotely write any file?

share|improve this question
    
Have you tried logging in as root on the Ubuntu Server? Does it work then? –  Daniel Andersson Jul 27 '12 at 13:38
    
Yes, I've enabled root in Ubuntu. I can ssh to it as root, but sftp doesn't work. –  MHK Jul 27 '12 at 14:43

2 Answers 2

Why not using SCP ?

There is a good client for osx -> click

It's over SSH and allows you to login on whatever user as long as it is allowed to login via ssh.

share|improve this answer
1  
Using scp will be no problem. Does cyberduck allow to pass sudo where necessary? –  MHK Jul 27 '12 at 14:23
    
I found similar sudo question here: stackoverflow.com/questions/3381498/… –  mnmnc Jul 27 '12 at 14:34

It's generally not recommended that you allow direct root remote access. If you enable direct root login via SSH, anyone could attempt to brute-force your root password, at which point they can do whatever they like with your server.

That said, if you're set on doing this, you should set up public key login, as it's more secure than password-based login. That page includes instructions on how to set this up for root. Once you have that configured, you can configure your SFTP client to login via key rather than password.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.