A. What's this? Thanks to sshfs. we are able to mount remote filesytem into local one. Ssh is used to connection.

B. Why? Because it's convenient. After mounting we don't need to care that we're working on local or remote machine. What is also worth to notice is security - the ssh is used to transmission.

C. ssfs vs. sftp There is one essential advantage of ssfs - we'are able to work directly on remote file system. We can easily change our home router to fileserver. We don't need to download ex. a movie, but we are able to play it directly from remote machine. We can storage all mp3 in a one place, and play them on all computers.

D. Requirements. ssh-fuse package - of course with dependencies.

E. How-to

1. Install packages

2.load fuse module

# modprobe fuse

To do it automaticcly on a system start ad fuse to /etc/modules


$ sshfs user@server:/home/users/user/example_folder/ /home/users/my_user/folder_to_mount/

of course in a one line



We have to be in a fuse group:

# usermod -A fuse my_user
$ fusermount -u /home/users/my_user/folder_to_mount/

F. Automount on system start

a. autolading fuse module is required (look at point E1)

b. We need to generate ssh keys to autologin on remote machine http://rcsg-gsir.imsb-dsgi.nrc-cnrc.gc.ca/documents/internet/node31.html

Edit /etc/fstab

sshfs#sshfs user@server:/home/user/example_folder/ /home/users/my_user/folder_to_mount/ uid=1001,gid=100,umask=0,allow_other 0 0

of course in a one line

where uid is equal to our user uid, or gid is equal to gid of group which should have acces to resources.

G. Troubles

/dev/fuse should have following permissions:

# ls -l /dev/fuse
crw-rw-rw- 1 root fuse 10, 229 2008-02-21 10:25 /dev/fuse

If there is root:root Let's change udev rule

# echo "KERNEL==\"fuse\",                  GROUP=\"fuse\"" >> /etc/udev/rules.d/91-permissions.rules
en/howtos/sshfs-mounting-folders-from-other-computers.txt ยท Last modified: 2008/10/24 09:04 (external edit)
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0 Powered by Lighttpd - fly light