2011-07-12 11:51:19

install on ubuntu

  1. $ sudo apt-get install sshfs
    [sudo] password for toto:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed
      sshfs
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 43.7 kB of archives.
    After this operation, 160 kB of additional disk space will be used.
    Get:1 http://gb.archive.ubuntu.com/ubuntu/ natty/main sshfs amd64 2.2-1build1 [43.7 kB]
    Fetched 43.7 kB in 0s (1,477 kB/s)
    Selecting previously deselected package sshfs.
    (Reading database ... 342224 files and directories currently installed.)
    Unpacking sshfs (from .../sshfs_2.2-1build1_amd64.deb) ...
    Processing triggers for man-db ...
    Setting up sshfs (2.2-1build1) ...
    
  2. $ sudo gpasswd -a $USER fuse
    Adding user toto to group fuse
    

using sshfs (mac and ubuntu)

  1. Create a mountpoint and give yourself ownership

    sudo mkdir /media/mount-name
    sudo chown your-username /media/mount-name
    
  2. Mount the filesystem

    sshfs remote-system-name:/remote-folder /media/mount-name
    
  3. Unmount the filesystem

    fusermount -u /media/mount-name
    

automating the process sshfs (mac and ubuntu)

  1. script to mount_cluster.sh :

    mkdir ~/spawn
    sshfs toto@server:~/spawn ~/spawn
    
  2. script to unmount umount_cluster.sh :

    fusermount -u  ~/spawn
    rmdir ~/spawn