Rob Garth
Mildly Useful Stuff

SSHFS in FC5

August 7th, 2006 by robg

From the SSHFS site:

This is 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.

Basically, if your machines are all running ssh daemons, sshfs is a really simply way to mount network filesystems. Jump for a quick howto:

To install fuse-sshfs on you machine enter:

# yum install fuse-sshfs

This will install fuse support onto your system and the sshfs utilities.

Access to fuse is controlled by the 'fuse' group. If you want to restrict access to certain users, or just your own account, add the accounts to the 'fuse' group:

# usermod -G fuse <username>

Then logout, and log back in.

However, if you want all users to be able to use the fuse sub-system, edit:

/etc/udev/rules.d/60-fuse.rules
/etc/makedev.d/z-fuse

Replaceing "660", with "666", and issue the following two commands to grant all users access:

# chmod a+rw /dev/fuse
# chmod a+rx /usr/bin/fusermount

To mount a remote filesystem:

$ sshfs [user@]<server>:

To unmount:

$ fusermount -u <mountpoint>

Posted in Uncategorized

Leave a Comment

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