old blog,

Network FileSystem using SSHfs

Izhar Firdaus Izhar Firdaus Follow Support Jan 30, 2006 · 2 mins read
Network FileSystem using SSHfs
Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

isnt it neat having one PC with its mounts are scattered among multiple PCs's harddisks in the network?? ... lots of stuff can be done using it coz all of the files work virtually as if it is in the same pc ...(i leave this for y'all to think what u can do with it coz i'm not good in giving ideas :P ) ....

traditional method of mounting a network filesystem is by using the famous NFS exports .... however ... configuring NFS to work might be quite hard for newbies ... and it became harder if you want to ensure the security of ur system ....

a few weeks ago .. i discovered that there is a program that can make the SFTP capability of SSH to be mounted as a local filesystem .... it gives the flexibility if NFS ... ease of use -- as easy as logging into SSH ... and the transactions are encrypted ... neato ..... the program is developed under FUSE ... so .. u'll need to have a FUSE capable kernel for it .... AFAIK ... kernel 2.6.14 above have FUSE included in it .... FC4 users juz need to update the kernel to the latest ... its compiled together in the RPM of the latest kernels ....

then u'll need to get the FUSE-SSHfs package from http://fuse.sourceforge.net/sshfs.html ... compile and install it ... good news to FC4 users ... FUSE-SSHfs RPM package is available in Fedora Extras ... hehe...

after a successfull installation .... u'll need to be root in order to mount the filesystem ...

mounting :

# sshfs user@mysshserver.net:/path/to/target /mountpoint/path
// then enter ur login passwd


# fusermount -u /mountpoint/path

by default ... only root can read/write to the mounted path ... if u need to have other users to use it ... use this command

# sshfs -o default_permissions,allow_other user@mysshserver.net:/path/to/target /mountpoint/path
// then enter ur login passwd

now u got a folder on another pc on the network mounted on /mountpoint/path of ur local filesystem .... enjoy!!

Written by Izhar Firdaus Follow Support
I'm a system architect, data engineer and developer advocate with passion in Free / Open Source software, entrepreneurship, community building, education and martial art. I take enjoyment in bridging and bringing together different FOSS technologies to help businesses and organizations utilize IT infrastructure to aid and optimize their business and organizational process.

Console Based Linux Boxes Made Easy using Webmin

Console based linux ... something that sounds quite techy to ppl .... and many ppl beleive only a total g33k can control such system ...

In old blog, Jan 30, 2006

« Previous Post

PortForwarding on Linux .. the easy way - (not through SSH)

this info might not be tempting for home user with only one PC ... but it worth it for ppl who owns a few linux boxes in a large netw...

In old blog, Jan 30, 2006

Next Post »