Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am looking for a way to access a remote file system as root, using a protocol like sshfs or fish://. My goal is to be able to administer files through a GUI locally (e.g. with Nautilus or dolphin) as if they were on the local computer; and without setting up a share.

I've found a way to elevate privileges immediately, when using ssh (ssh -t user@host sudo -s). One acceptable answer to my question would be to do something similar with sshfs. Another example would be to elevate privilege post-login.

share|improve this question
    
Is there a valid reason to want a SSH session to be able to connect as 'root'? This is disabled (by default) for a reason. –  david6 Mar 28 at 23:25
    
I don't want to connect as root, I want to connect and elevate privileges. This is no less secure than executing sudo -s after connecting with ssh (aside from managing the mount on the connecting PC). –  JoBu1324 Mar 29 at 0:05
    
I had assumed that, although you didn't make it totally clear. The problem with Nautilus is that it doesn't support any complexity in how it logs in (using SSH) to a remote server. I have done this at command line, and with third party SFTP 'non-free' tools. I haven't found a convenient way of doing this with Nautilus, although there was an add-on with the older version (? 2 years ago). –  david6 Mar 29 at 0:28
    
Command line would work - I can mount to a folder and access it through the GUI. –  JoBu1324 Mar 29 at 0:37

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.