Remote Filesystem in Unix (SSHFS)

Linux OS Topics
Post Reply
User avatar
Saman
Lieutenant Colonel
Lieutenant Colonel
Posts: 828
Joined: Fri Jul 31, 2009 10:32 pm
Location: Mount Lavinia

Remote Filesystem in Unix (SSHFS)

Post by Saman » Tue Oct 06, 2009 3:25 pm

sshfs is a program with which one can open(or edit) a remote filesystem in unix( i think it also can work under fat and ntfs). It’s extremely important in cases where vnc is not possible, since only console is available.

The installation process is very simple and nothing to describe anything more here. For more information check:
http://fuse.sourceforge.net/sshfs.html

sshfs creates a group under the name fuse. In order to be able to run an executable as a user, this user should have to be
inside that group, have permissions over the newly mounted file and have execute access at /usr/bin/fusermount and /etc/fuse.conf. These things happen after issuing the commands below:

Code: Select all

adduser ForTheWin fuse
mkdir mountDir
chown ForTheWin:fuse mountDir
chown ForTheWin:fuse /dev/fuse
chmod +x /usr/bin/fusermount
chmod +x /etc/fuse.conf
If you like you can also add a line at /etc/fstab :

Code: Select all

sshfs#[email protected]:/starting/path fuse user,allow_other 0 0
(maybe noauto is better for you)

And then you can finally mount the filesystem :

Code: Select all

sshfs name@remoteHost:remoteFilePath localMountPoint
In case /dev/fuse module cannot be found, load it with :

Code: Select all

modprobe /dev/fuse
Post Reply

Return to “Linux”