Skip to main content

linux sshfs mount remote folder in local disk


sshfs   alamt@kw2237.rc:/home/KAUST/alamt  /home/tanviralam/kaustmachine/
ssh -X  alamt@kw2237.rc

run matlab
/mnt/kaustapps/MATLAB-faculty/matlab.R2011b



http://www.go2linux.org/sshfs-mount-remote-filesystem-using-ssh

Installation of sshfs
Get the packages
  • For Debian:
    apt-get install fuse-utils sshfs
  • For Ubuntu:
    sudo apt-get install fuse-utils sshfs
  • For Fedora and Centos:
    yum install fuse-utils sshfs
  • For Mandriva: urpmi:
    urpmi fuse-utils sshfs
Next step is to mount the fuse module[localuser: tanviralam remoteuser: alamt]

1. modprobe fuse

2. Next create the mount point
mkdir /home/tanviralam/remote

chown [local-user]:[your-group] /mnt/remote-fs/

chown tanvialam:777 /home/tanviralam/remote

3. Add yourself to the fuse group

adduser [local-user] fuse
adduser tanviralam fuse

4. Untill here all the command should be issued as root, now switch to your users and mount the remote filesystem.

sshfs remote-user@remote.server:/remote/directory /home/tanviralam/remote/

Comments