Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

It is always suggested on first step to disable the remote root login for the SSH protocol. I have a low-right user able to connect via SSH and once connected, I simply su in order to gain more rights.

Now when using a sFTP client, I use my low-right user and am thus able to do next to nothing.

My question is : Is it possible to change user after login using 3rd party client, such as Transmit, Cyberduck, Filezilla ?

PS : Mac clients would be great ;)

share|improve this question

1 Answer 1

up vote 2 down vote accepted

No, it is not possible to elevate your privileges within sftp.

Ideally you should fix the filesystem permission so that don't need root privileges to download/upload whatever you are working on.

If changing permissions isn't an option, then there is a compromise between disabling root logins, and logins with a password. You could set PermitRootLogin without-password and then simply use key-based authentication.

share|improve this answer
    
Interesting solution to use keys + password. Hadn't tought of that. Thanks –  Zenklys Dec 1 '11 at 9:10

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.