Mounting a Filesystem via SSH on OSX Mavericks

October 28, 2013

fuse SSH’ing to a server and doing all the configuration through terminal is easy and very fast, but when you want to edit files and set a remote development environment on your local machine, mounting a remote filesystem over ssh and editing them as the files were in your computer is the way to go.

Right now I’m using the just released OSX Mavericks (OSX 10.9), so for mounting a remote system you will need to do some tricks and tweaks to have it working. I will try to explain step-by-step on how to do it.

Install OSXFUSE

First of all, you will have to install OSX Fuse, the successor of the MacFuse software. You would normally check in it’s GitHub Page, but the problem is that the last version released there is the 2.5.4 (as for the time I write this post) which is not compatible with this OSX, so we will need the 2.6.0.

Install SSHFS

After doing all this you should be able to mount any remote filesystem via SSH.

To create the path where you want to mount your filesystem:
mkdir -pv ~/path/to/mount

And finally mounting the system:
sshfs -C -p PORT user@server:/ ~/path/to/mount

and you are set!

Any questions, just ask!

Category: apple, Howto, Scripts, Software


5 Comments

  1. ビルドしたpdfをsshfsからSkimで読む — December 29, 2013 @ 2:45 am

    […] Mounting a Filesystem via SSH on OSX Mavericks – DanielAndrade.net […]

  2. Roberto — May 26, 2014 @ 8:07 am

    Any idea about libgthread-2.0.0.dylib missing even though brew gave (apparently) no errors?

    ~~~~~~~~~~~~~~~

    /usr/local/Cellar/sshfs/2.5.0/bin
    >./sshfs

    dyld: Library not loaded: /usr/local/lib/libgthread-2.0.0.dylib

    Referenced from: /usr/local/Cellar/sshfs/2.5.0/bin/./sshfs

    Reason: image not found

    Trace/BPT trap: 5

  3. nobody — September 30, 2014 @ 9:11 pm

    osxfuse: osxfuse is already installed from the binary distribution and

    conflicts with this formula.

    Error: An unsatisfied requirement failed this build.

  4. Alexander Taylor — October 9, 2014 @ 9:52 pm

    here’s what i did to solve this:

    sudo ln -s /usr/local/Cellar/glib/2.40.0_1/lib/libgthread-2.0.0.dylib /usr/local/lib/libgthread-2.0.0.dylib

    sudo ln -s /usr/local/Cellar/glib/2.40.0_1/lib/libglib-2.0.0.dylib /usr/local/lib/libglib-2.0.0.dylib

  5. ralph — October 22, 2014 @ 10:55 am

    Installed this following the steps described here on a clean Mavericks 10.9, and it worked instantly! (Now I finally have brew too ;-)
    Thank you very much!
    The only little issue is that transfer speed seems somewhat limited, seems like only 70% of the network bandwidth is used, which does matter on slow connections. Can I change the SSH cipher using sshfs?
    man sshfs gave no answer.


TrackBack URL

Leave a comment