The use of SSHFS

SSHFS is a tool that uses SSH to enable mounting of a remote filesystem on a local machine. This tool can be used for directories sharing. SSHFS is built using FUSE and non-priviliged users can create their own file systems. Only two steps needed to use sshfs.

1) Install sshfs
2) Edit /etc/group and add your login name in the FUSE group

How to share a directory using sshfs

1) Create a local directory for the mountpoint.
mkdir /home/user/TEST
2) Mount any directory from the remote machine
sshfs foo@remote_machine:/home/foo home/user/TEST

Now the directory 'TEST' has all the contents of the remote home directory of foo.
The files in this directory are editable and can move around just as though it were a
local directory.

0 comments: