118

My Question is seemingly simple. I need to mount an SSH/SFTP volume and make it visible in finder to be able to use it as if it were a local volume (think SMB share). I have tried everything I could find (MacFUSE + sshfs (whatever version), Macfusion (couldn't install),...).

Is there anyway to do this seemingly simple thing? It feels like I'm missing something here. Also, I'm not looking for an SFTP client for download/upload. My personal machine is an Ubuntu box, and that's easily doable on that.

12 Answers 12

109

The best solution I've found today (2017) is to use Homebrew and Cask to install osxfuse and sshfs:

brew install --cask osxfuse
brew install sshfs

And then:

sshfs username@hostname:/remote/directory/path /local/mount/point -ovolname=NAME

It works! :-)

13
  • 1
    I don't see files mounted this way in finder for some reason
    – Julius
    Dec 31 '15 at 21:00
  • 4
    The mount point can be any folder that the current user has write access to. You can create a wrapper shell script: mkdir -p "/Volumes/$1"; sshfs remote_user_name@$1:/ "/Volumes/$1" -ovolname=$1 && open "/Volumes/$1", and then call the script passing it the IP address, i.e. mountssh.sh 192.168.1.123. On success Finder will automatically open the remote folder.
    – ccpizza
    Apr 1 '16 at 14:03
  • 14
    Be careful when using this tool to mount in Volumes. I messed up and specified /Volumes (itself) as the mount point and it killed the folder. I know...dumb, but...it happened. That made Finder unhappy. Disk repair fixed it but it was a scary 20 minutes. May 26 '16 at 21:01
  • 1
    @JensTimmerman, sshfs moved from a brew cask to a brew tap, updated the answer, see above
    – eskatos
    Jan 3 '17 at 16:33
  • 1
    If you are using ssh keys remember that path to key must be absolute path: stackoverflow.com/questions/22393502/… Oct 22 '17 at 10:25
29

Well, MacFusion was going to be my answer but since you've tried that I'll recommend my second favourite app when it comes to mounting shares: Panic's Transmit. It's new, very awesome, feature lets you mount any share that it can connect to in the UI as a "disk" in your Finder that you can drag files to. SFTP, SSH, S3...very cool.

2
  • 1
    My #1 issue with MacFusion is that it doesn't support key-based authentication, so I can't use it with the server I usually use. Transmit handles that nicely (but isn't free).
    – cjm
    Feb 29 '16 at 8:54
  • Transmit Disk has been removed as of Transmit 5.6.0 library.panic.com/transmit/transmit-disk
    – lazd
    Dec 10 '20 at 6:13
8

I use Cyberduck for this task. It's a cross-platform (but native on mac) app that is full of features and it's free to use. You can support the developers by donating or buying it directly from the Mac App Store.

The developer also has an application named Mountainduck which let you mount the path you want to a folder and access it through Finder app.

0
6

As of March 2013, the current free software solution is macFUSE plus a package for SSHFS (a download link on Fuse for OS X webpage).

Macfusion is a GUI for easy mounting/unmounting remote shares but it needs to be patched to work with SSHFS/Fuse for OS X.

1
1

Best ones that you can use are Transmit, like has been said before, or Expandrive, which is probably more like what you're looking for, as finder integration is its main feature.

0

Another solution is WebDrive (35$+). I successfully used the Windows version of the same product, so I expect the same from the OS X version. Too bad, that they require you to buy separate licenses for Windows and OS X.

0

If you already have FUSE for OS X installed (e.g. you got it directly from SourceForge), then @eskatos solution can reduced to just installing sshfs instead of the whole cask which includes FUSE. You can do this by using:

brew install homebrew/fuse/sshfs

You might want to check if you have the latest version of FUSE for OS X through your System Preferences while you're at it.

0

Given I cannot comment, I'll add to this answer that if you want to unmount the recently mounted sshfs disk, you need to execute:

umount <MOUNTPOINT>

The sshfs man page states that you should do fusermount -u <MOUNTPOINT> but that command doesn't exist in macOS

1
  • Try diskutil unmount MountPoint|DiskIdentifier|DeviceNode Jun 19 '19 at 19:43
0

Just in case you are having problems unmounting the disk, you can unmount it simply writing

umount ~/mounted/folder

hope it saves some headache to someone else

1
  • Welcome to Ask Different. Could you edit this to elaborate how it addresses the question on how to mount? Be sure you complete the tour as well, it helps get the best reception when you participate.
    – bmike
    Nov 29 '20 at 18:51
-1

ExpanDrive is a commercial version with an outrageous $50 price tag, but is very clean and slick.

It also mounts Dropbox, Google Drive, OneDrive, Amazon S3, OwnCloud folders, plus a bunch more and supports ssh keys and sftp.

1
  • I wouldn't recommend ExpanDrive any more - my copy simply won't connect to anything at all (either basic SSH or Dropbox/Google etc. - repeated oauth errors for the latter) and didn't get anywhere with support. Jul 19 at 10:41
-1

You can download CloudMounter from the Mac App Store.

This app, permit virtual mount units like, GoogleDrive, DropBox, S3, SFTP, FTP, etc.

1
  • Does it work on Snow Leopard?
    – nohillside
    Jan 3 '19 at 7:01
-5

I use Filezilla, its free, connect as sftp.

0

You must log in to answer this question.