Mount remote remote folder using sshfs
First install the module:
sudo apt-get install sshfs
Now use modprobe command to load fuse
sudo modprobe fuse
Need to set up some permissions in to access the utilities.
sudo adduser surmandal fuse sudo chown root:fuse /dev/fuse sudo chmod +x /dev/fusermount
Note:you might get this error. I have got same error mesage too. "chmd: cannot access '/dev/fusermount' : No such file or directory." I fix it by doing
whereis fusermount
output
/bin/fusermount
sudo chmod 4755 /bin/fusermount
Now Logout once and log in back. Now create a Directory in desire path. I have created a DIR called blackbox in my Home Directory. mkdir ~/blackbox Now use this command to mount it. it will prompt to save the server key and for your remote computer password.
sshfs surmandal@202.79.x.x :/remotepath ~/blackbox
Now cd into the directory and start using it as if local.
surmandal@blackbox:$ cd ~/surmandal/blackbox && ls -l
Output:
total 0 -rw-r--r-- 1 surmandal surmandal 0 2008-04-14 13:05 saroj
Enjoy Mounting the Remote DIR.
