FUSE/sshfs

FUSE (Filesystem in Userspace) rocks. Case in point, sshfs. – It’s a filesystem client based on the SSH File Transfer Protocol. Since most SSH servers already support this protocol it is very easy to set up: i.e. on the server side there’s nothing to do. On the client side mounting the filesystem is as easy as logging into the server with ssh.

To set it up, just do this once:

$ sudo apt-get install sshfs
$ sudo adduser yourlocalusername fuse
(log out and back in so that it recognizes me as a member of the group "fuse")

Mounting is as easy as:

$ sshfs yourremoteusername@remotehost: mountpoint

To unmount:

$ fusermount -u mountpoint

Tip of the hat to Ubuntonista and of course Miklos Szeredi.

DreamHost

7 thoughts on “FUSE/sshfs

  1. Too bad it doesn’t work on Mac OS X. I’d sure like to mount my Linux server drive that way when I’m out of the office…

  2. @Christopher Smith.

    Well, TRAMP is a great thing, but it still requires that you send your credentials every time you commit… The workaround for this is to ssh-add, but this still does not beat ls’ing your /mnt/ and seeing the seven servers you’re working on just lying around waiting for you… 😉

  3. Pingback: Marc Abramowitz » shfs Linux Kernel Module

Leave a Reply

Your email address will not be published. Required fields are marked *