HOWTO: Install fuse + sshfs on CentOS Linux June 8, 2006Posted by devhen in CentOS, HOWTO, Linux.
NOTE: These instruction are for CentOS 4.
The apt-get method of installing sshfs that I had posted here previously did not work for me. I got this error when trying to mount an ssh drive:
shfsmount: shfs filesystem not supported by the kernel
So, I set out to find a different method of installing sshfs (and fuse, which it requires). One, preferably, that would actually work. Well, I found one. Its not the most elegant solution but its effective.
First, download a copy of the fuse source rpm:
Next, install the source rpm and then build the proper fuse rpm’s from the .spec file:
rpm -ivh fuse-2.6.0-1.src.rpm
rpmbuild -bb /usr/src/redhat/SPECS/fuse.spec
Next, install the rpms that you have built:
cd /usr/src/redhat/RPMS/i386 (replace ‘i386’ with your arch, if necessary)
rpm -Uvh fuse-2.6.0-1.i386.rpm fuse-kernel-2.6.0-1.i386.rpm fuse-libs-2.6.0-1.i386.rpm fuse-devel-2.6.0-1.i386.rpm
Now you can install the sshfs-fuse rpm:
rpm -ivh sshfs-fuse-1.6-2.i386.rpm
** You can try building the sshfs-fuse rpm from its source package if your not on i386**
Now comes the ugly part… For some reason the system can’t find the fuse module after installing these packages. So, head over to the fuse project homepage and download fuse-2.6.0.tar.gz. Unpack it and then
and you should be in business. As I said, this is not an elegant solution because you are installing fuse from the tar.gz file on top of the fuse rpms. However, it works for me and that’s all that matters right now because I really needed to mount some ssh drives on my workstation. 😉
Mount an ssh drive like so:
sshfs user@remotesystem:/path/you/want/to/mount/ /mnt/mount-point/ -o allow_other
Don’t forget the trailing /’s on both the source folder and the mount point. -o allow_other will give all users access to the mounted drive. Type sshfs -h for a list of all of sshfs’ options.