Mounting Remote Drives Using MacFuse + SSHFS on Mac & iPhone

Just found this on the Google Code site. If you ever need to access a remote drive on your computer and mount it like any other drive in Mac OS X then MacFuse and SSHFS is the thing to use.

Really simple stuff. Let’s say you have a computer or even an iPhone you want to mount on your Mac then install the programs - available here:

http://code.google.com/p/macfuse/

Install your version of MacFuse along with SSHFS. Run the installers then launch SSHFS.

If for some reason your computer is behind a firewall or router, then you’re going to have to open up the port to allow SSH - that’s port 22.

If your router has a dynamic IP, you might consider using something like dyndns.com along with a program to send the correct IP address to dyndns.com so you can resolve to the correct IP.

This is where you can get the program for your iPhone:
http://code.google.com/p/iphonedisk/

And this is how to implement SSHFS + iPhoneDisk:
http://www.tuaw.com/2007/07/27/tuaw-tip-put-iphones-file-system-onto-your-desktop-with-sshfs/

NOTE:

As for myself, I’m trying to figure out how to use a port other than the default 22 for SSHFS, since the firewall using using another port. It then forwards the port to the proper server and port.  Just not sure if SSHFS is going to take a port in the dialog box.

You can do this on the command line, using for example 8080 as the port:

ssh -p 8080

Last thing. I believe you need to SSH into the server you plan to mount using terminal to get the DSA fingerprint loaded into the computer you’re using.

Here’s a nice howto:
http://www.macosxhints.com/article.php?story=20070904180753526

I think you could hack around with SSH to figure out how to get around logging into terminal the first time - in case you have various users who need to do this.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/openssh.html

Posted by on 01/25 at 07:01 PM

<< Back to main