2011-07-10 mounting filesystems using SSH

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

install on macosx

  1. install http://code.google.com/p/macfuse
  2. follow http://code.google.com/p/macfuse/wiki/MACFUSE_FS_SSHFS
  3. (!) on a 64 bits system, you have to install a proper version, follow http://superuser.com/questions/75332/is-truecrypt-macfuse-supported-on-snow-leopard-with-64-bit-kernel

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

Comments

Comments powered by Disqus