Jun 11

FUSE and sshfs are two amazingly useful pieces of tech that exist in the linux kernel. The idea of FUSE is to allow file system drivers to exist in user space instead of requiring kernel support. sshfs allows you to mount a remote file system using ssh and access it just like you would any other file system. I use it, for example, to mount my remote website provider to do backups and copy files around. Good stuff. So here are the three little commands that you’ll need to run in order to use sshfs in Ubuntu. This has been ripped from various sources on the internet, so props to the authors.
Install sshfs

sudo apt-get install sshfs

Add your users to the fuse user group where $USER is your userid

sudo adduser $USER fuse

Mount something where $USER is your remote userid and $REMOTEHOST is the remote system you want to mount.

sshfs $USER@$REMOTEHOST:/files /mnt/files

Unmount it when you’re done

fusermount -u /mnt/files

Really neat to play with and the remote nodes don’t have to be linux. They can be solaris, AIX, etc

Enjoy!
  • Digg
  • del.icio.us
  • Google Bookmarks

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.