SSHFS: A Perfect Remote File Manager?

SSHFS is a Fuse-based Linux filesystem that allows you to connect to an SSH server, and mount it as you would any other mountable device.  The difference is... this "device" is a remote server using an SSH connection.  At Holley Grove, we use SSHFS on all of our servers, SSHFS might be something you should consider as well... here's just a few reasons why:

  1. You're basically using SSH to communicate.  SSH is encrypted, and as such can be one of the most secure methods of communication available.
  2. The setup is relatively simple, as you only need a few libraries on the client computers, and an SSH server running on the remote server.
  3. Permissions, users, and groups are all preserved as they would be using normal SSH.
  4. You can turn off in-secure, un-encrypted FTP completely.
  5. Fast access to files via your file manager application as if they were stored locally on your computer.  For Linux Gnome users, your SSHFS mounted shares will show up in Nautilus and act accordingly.

HowTo:

For Ubuntu, simply install sshfs via the package manager.  You'll then need to add your Ubuntu user account to the Fuse group so that you'll have permission to use Fuse.  To do this, go to System -> Administration -> Users and Groups.  Click on your username and click the "Properties" button.  Make sure the checkbox for "fuse" is checked and save your settings.  You may need to log out and log back in for these changes to take effect.  Now you can mount an SSH server in the directory called "remote":

sshfs landon@holleygrove.com: remote

And to disconnect:

fusermount -u remote

SSHFS Desktop ExampleIt's great to be able to run a command to mount an SSH server, then pop open nautlius and have all the remote files and directories listed right there just as any other files!

2 Comments

  1. paul
    Posted November 1, 2009 at 6:27 am | Permalink

    thanks a bundle.

    for root or partitions on other drives use the examples below:
    sshfs landon@holleygrove.com:/ remote
    sshfs landon@holleygrove.com:/mnt/disk1 remote
    sshfs landon@holleygrove.com:/media/disk1 remote

  2. paul
    Posted November 1, 2009 at 6:29 am | Permalink

    it would be nice if you could post an example of how to automate this on startup and shutdown or inbetween (suspend/hibernate)

    is it so bad to not unmount the remote filesystem?

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*