Wednesday, July 8, 2009

MacFUSE and Sshfs Tutorial

This is just a quickstart tutorial for MacFUSE and sshfs. Thanks much to Richard for pointing me to MacFUSE and the pre-compiled sshfs.

1. Download and install MacFUSE. There is no app, just install it and move on.

2. Download the precompiled sshfs appropriate for your OS X version from the macfuse sshfs wiki page.

3. Rename that file to sshfs and put it into /usr/local/bin/

4. Make sure that the the ownership of that file matches others in dir and perms are same/similar.

5. Test it out:

sshfs
For help:
sshfs -h
Basically, you need to create a directory on your OS X box and then:
sshfs username@server:/path/to/dir/ /some/local/dir/
Then it all just works! (at least it did for me)

2 comments:

Gary S. Weaver said...

Had an issue with Dejal Simon reporting to the MacFUSE/sshfs directory. Not sure what the cause is (Simon or MacFUSE/sshfs) but Simon doesn't have the issue when writing to a non-sshfs dir. The issue is not consistent but an extra strange character is inserted after each character written to only some files.

Gary S. Weaver said...

The character in emacs that appears after each character in the corrupted file is ^@ and the beginning of the file appears to have bad character codes: FF FE