How to mount remote folder over ssh on mac

Install brew if not installed

/usr/bin/ruby -e "$(curl -fsSL"

Install FUSE and SSHFS

Install FUSE

brew cask install osxfuse

or download through the link: fuse

Install SSHFS

brew install sshfs

Or download sshfs here: sshfs For other operation systems, check the link here: link

SSh to your server

sudo sshfs -o allow_other,defer_permissions,IdentityFile=~/.ssh/id_rsa user@host:/remotefolder/ /localfolder

Then your remote folder will appear in your local address.

Common Issues:

If you end up with error message:

 mount_osxfuse: mount point localfolder is itself on a OSXFUSE volume

You can check whether it is already mounted by do


If you get the message like the following:

/dev/disk1 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
/dev/disk2 on /Volumes/FUSE for macOS (hfs, local, nodev, nosuid, read-only, noowners, quarantine, mounted by yang)
user@host:/remotefolder/ on /localfolder (osxfuse, synchronous)

Then you can simply “umount” it to fix this issue.

umount user@host:/remotefolder/

If you cannot umount or mount an sshfs volume after ssh:

pgrep -lf sshfs
kill -9 <pid_of_sshfs_process>
sudo umount -f <mounted_dir>