Thursday, February 23, 2006

SSHFS and Fuse

Great way to have a secure remote filesystem at home and be able to mount it locally while at coffee shop or at work.


1) Download and install fuse and sshfs from Sourceforge.net


2) ./configure, make, and sudo make install for both fuse and sshfs


3) fuse will install libs under /usr/local/lib, so you must give kernel information on where to find the information by adding "/usr/local/lib" to the end of /etc/ld.so.conf.


4) Update ld cache: sudo ldconfig


5) I had to update /etc/modules to include "fuse" so that udev will re-create /dev/fuse when the module is loaded.


6) mount your remote directory:


$ mkdir thisdir


$ sshfs dbreese@192.168.1.200: thisdir


$ mount


7) Unmount it:


$ fusermount -u thisdir

8) If /dev/fuse issues arrise (doesn't exist or can't write to it):

# mknod /dev/fuse c 10 229
# chmod o+rw /dev/fuse

No comments: