If you’ve always wanted a way to mount a remote SFTP/SSH accessible folder on your Mac OSX 10.9, well now there is a way to get you there!
Basically you will have access to the remote share to access files. It will be SFTP over the SSH protocol and fully encrypted.

Getting started

Start by downloading the following files:

Install OSXFuse and then SSHFS.

Mount your SSHFS share

Create an empty folder (using your Terminal) that will want to access the remote share on (folder becomes the mount point).

mkdir /Users/jakub/Mounts/remoteMountDir/

And then create your SSHFS mount with the following command to your remote server:

sshfs -p 22 sshUsername@remoteServerAddress:/path/to/remote/folder /Users/jakub/Mounts/remoteMountDir

The -p 22 is your SSH port in case you use something nonstandard. You will be asked to authenticate (username + password) to mount your share. Once that is done, it should be visible in Finder.

Unmounting

To unmount the SSHFS share use this command:

umount -f /Users/jakub/Mounts/remoteMountDir

Caveats

  • This process is just like using SFTP, but in your Finder
  • You can use your Sublime Text to ‘add folder to Project’ and work ‘locally’
  • If the remote files change or are changed, the change will not be updated in finder unless you refresh the folder, the SSH server does not notify SSHFS about file changes (there are ways to expire the cache for always refreshing every folder). This is a big issue you might run into as you might overwrite changed files, so know who/what is editing files.
  • It may be slower than normal file/folder navigation


4 Comments to “Mounting remote SFTP/SSH shares on Mac OSX 10.9”

  1. Mount Sftp in OSX 10.9 | Day by day | August 12th, 2014 at 10:48 AM

    […] http://blog.biernacki.ca/2014/01/mounting-remote-sftpssh-shares-on-mac-osx-10-9/ […]

  2. Jason | July 7th, 2015 at 6:29 PM

    Can you add a password to the connection string?

  3. zeadasd | October 12th, 2015 at 9:34 AM

    sshfs -p 22 sshUsername@remoteServerAddress:/path/to/remote/folder /Users/jakub/Mounts/remoteMountDir

  4. gulli | November 6th, 2016 at 2:11 AM

    If you are frustrated that it does not work, check this page with some more instructions. Thank you both!

    https://www.chrisnewland.com/mac-os-x-mount-remote-filesystem-locally-using-sshfs-281

Leave a Comment