Skip to content Skip to navigation

Mounting Linux/Unix Home Directory on MacOS X Securely

Mounting Linux/Unix Home Directory on MacOS X Securely

Created 2015-10-27 by Hanz Makmur

 

In order to manipulate files on a Linux/Unix file system on CS iLab/Grad/Faculty file system on MacOS X machines, one needs to mount that Linux file system locally on the Mac system.

 

Requirement

Before you can mount Linux file system you need to some software. In this article, we will mount remote file systems using FUSE+SSHFS securely.

 

Step 1. Install OS X FUSE

OS X FUSE is used to Extends OS X support of third party file systems. If one is NOT already installed. Download fromhttp://sourceforge.net/projects/osxfuse/ and install it on your MacOS X. When installing OS FUSE, make sure you also install theMacFuse Compatibility Layer to allow you to run older version of software that support obsolete MacFuse calls. OSXFUSE is a successor to MacFUSE, which has been unmaintained since 2009. It shares most of its source code with MacFUSE

Step2. Install MacFusion

You can get MacFusion from http://macfusionapp.org/. Macfusion brings servers from across the internet directly to your Mac's desktop. This is the main software that brings point/click ease of use to MacOS X. Once you downloaded MacFusion_2.x.zip, just double click it to reveal the actual MacFusion App. Move this App to your Application or Desktop Folder where you can easily access it later.

Using MacFusion to Mount Linux/Unix File System on MacOS X

To mount remote Linux/Unix file system to your MacOS X machine, open the MacFusion App. This brings a first run Window informing you the macfusion agent is not started. Please check [x] Start agent automatically on login and click Start as shown in figure below.

To mount a remote Linux/Unix file system, simply click the + icon as shows below and select SSHFS.
and a setup window will open as below.

In this example, we will show how to mount from a machine named 
athos.rutgers.edu and basic.cs.rutgers.edu

 

At times, a window below will open asking you for access to your keychain.

 
If you want to avoid entering password every time, click Always Allow otherwise, click Allow or Deny and enter the password as needed when asked in the future.

 

Mounting Remote File System

Once you configure the mount mount, you should now be able to mount the remote file system simply by clicking the Mount .button

Note: MacFusion is an old software which still works with OSX 10.9 and prior. but it may not be 100% compatible with current release of MacOS X. Some functionality may not work with current OSX. For tips to get MacFusion to work with current MacOSX, see a list ofKnown Issues and Google Group discussion at https://groups.google.com/forum/#!forum/osxfuse-group

For those of you who loves command line, here is an example of what was called when you were connecting to athos.rutgers.edu

 
   /Applications/Macfusion.app/Contents/PlugIns/sshfs.mfplugin/Contents/Resources/sshfs-static \
	hmakmur@athos.rutgers.edu:/fac/users/hmakmur /Volumes/athos \
	-p22 -oCheckHostIP=no \
	-oStrictHostKeyChecking=no \
	-oNumberOfPasswordPrompts=1 \
	-ofollow_symlinks \
	-ovolname=athos.rutgers.edu \
	-ologlevel=debug1 -f \
	-ovolicon=/Applications/Macfusion.app/Contents/PlugIns/sshfs.mfplugin/Contents/Resources/sshfs_icon.icns
				

Please direct Questions and Problems to help@cs.rutgers.edu