Using SSHFS to mount distant filesystemsSometimes you want ("need") to mount a distant filesystem but you don't want ("have the time") to install NFS or something like that just for this particular need. .. and then you also realize that NFS (in a simple config) is not crypted and that doesn't seem right.. well in those cases you could use SSHFS. ... .
The computer on which you wish to mount the file system will require adding packages: sshfs and fuse-utils :
apt-get install sshfs fuse-utils
You shall then need to add the module
Add your user to the fuse group
adduser manu fuse
You should then logout (for real) and log back in for your session to be part of the newly joinded group.. . . if you are in a hurry or don't have time for the pain you can do:
All the server needs is an SSH server, that should be already the case. . .actually with sshfs you don't need to do anything on the server to be able to connect, hence you can mount file systems on servers on which you are not root.
. . I almost forgot the fun part, mounting an SSH filesystem.. ... .well you could do something like this:
sshfs server:/somewhere/on/the/server /home/your_local_home_dir/sshfs
and for umounting:
fusermount -u /home/your_local_home_dir/sshfs