SSHFS Mini HowTo

From AstroNuWiki
Revision as of 16:45, 14 January 2014 by AstroNuAdmin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

It is one of opportunities to get access to remote filesystem on a network.

1. Install sshfs by doing (you have to be root-user):
# apt-get install sshfs
This will also install fuse-utils and libfuse2, which are required.
2. Next step is to mount the fuse module
# modprobe fuse
also you can add this module (fuse) to file /etc/modules
3. Add user to group fuse (you have to be root-user):
# adduser username fuse
4. You will have to log out and log in again, to add yourself to the group fuse.
5. Then create a local directory where you want the files mounted. You should create the
directory and be the owner of the directory (usual user):
# mkdir /home/user/dir-name
6. Mount a remote filesystem by doing (for DST data on the astronu):
# sshfs /home/user/dir-name
7. Enjoy your work!
8. To unmount this directory use command:
# fusermount -u /home/user/dir-name

It seems sshfs is useful. Unfortunately anyone has to mount remote folder itself. For example I mounted to And I can use it. But nobody can do it too, even root-user.

User:OlegSamoylov 22:20, 21 November 2007 (MSK)