Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:howtos:sshfs-mounting-folders-from-other-computers [2008/10/24 09:04] (current)
Line 1: Line 1:
 +**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
 +
 +<​code>#​ modprobe fuse</​code>​
 +
 +To do it automaticcly on a system start ad ''​fuse''​ to  ''/​etc/​modules''​
 +
 +**3.Mounting**
 +
 +<​code>​$ sshfs user@server:/​home/​users/​user/​example_folder/​ /​home/​users/​my_user/​folder_to_mount/</​code>​
 +
 +//of course in a one line//
 +
 +Voila!
 +
 +**4.Unmounting**
 +
 +We have to be in a ''​fuse''​ group:
 +
 +<​code>#​ usermod -A fuse my_user</​code>​
 +
 +<​code>​$ fusermount -u /​home/​users/​my_user/​folder_to_mount/</​code>​
 +
 +**
 +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''​
 +
 +<​file>​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</​file>​
 +
 +//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:​
 +
 +<​code>​
 +# ls -l /dev/fuse
 +crw-rw-rw- 1 root fuse 10, 229 2008-02-21 10:25 /dev/fuse
 +</​code>​
 +If there is root:root
 +Let's change udev rule
 +
 +<​code>#​ echo "​KERNEL==\"​fuse\", ​                 GROUP=\"​fuse\""​ >> /​etc/​udev/​rules.d/​91-permissions.rules</​code>​
 +
 +
  
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