Skip to content

Instantly share code, notes, and snippets.

@donovanr
Last active May 25, 2017 22:37
Show Gist options
  • Save donovanr/280c51bb174fcf090f56db53f48dadf0 to your computer and use it in GitHub Desktop.
Save donovanr/280c51bb174fcf090f56db53f48dadf0 to your computer and use it in GitHub Desktop.
how to use sshfs to access qmaster and /allen/aics/modeling etc

How to use sshfs to mount qmaster+isilon (or any other ssh-able machine)

Get FUSE and SSHFS

  • Download FUSE for Mac and SSHFS from here and install them in that order.

Create a mount point

  • Create a mountpoint for e.g. qmaster in /mnt and chown it to you:
    • sudo mkdir -p /mnt/qmaster
    • sudo chown <username> /mnt/qmaster
  • Symlink it to the /Volumes diectory (creating it directly in /Volumes causes trouble with unmounting):
    • ln -s /mnt/qmaster /Volumes/qmaster

Mount the remote machine to the symlink

  • sshfs -o volname=qMaster,reconnect,follow_symlinks <username>@qmaster:/home/<username>/ /mnt/qmaster
  • if you want, you can make this command an alias like sshfs_qmaster or just run it on startup by saving it to a script.

Unmounting the remote volume

  • Unmount with umount /mnt/qmaster or by "ejecting" the volume, or dragging it to the trash.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment