SSHFS allows you to mount a remote filesystem using SFTP. Most SSH servers support and enable this SFTP access by default, so SSHFS is very simple to use - there’s nothing to do on the server-side.
Installation requires administrative privileges.
Prior to installing, you should make sure that you can SSH with keys
Download macFUSE (dmg or pkg) and SSHFS (pkg) from Home - macFUSE - http://osxfuse.github.io
Open these dmg or pkg, run installer. Then open the
Security & Privacy System Preferences when prompted
Switch to the
General tab (if not already selected) and then click the button to
Allow system software from developer “Benjamin Fleischer”.
SSHFS is Linux based software that needs to be installed on your local computer. On Ubuntu and Debian based systems it can be installed through apt-get.
sudo apt-get install sshfs
Create a folder in local host to access the remote filesystems (aka a mount point):
Mounting remote filesystems with sshfs
sshfs [email protected]:/full/path/to/directory /local/mount/point
Unmounting remote filesystems
On occasion the mount may become stuck or unresponsive you can force unmount:
OS X (Mac) helpful hints
As of OSX 10.15 Catilina we are not recommending to create mounts in the root path or / of the file system.
To avoids local Apple Finder issues. We give the volume a name
volname=userdocs (shows mount point on your desktop), add some additional options for server connections, etc. If you are using an key-based-ssh you would add it’s path to the IdentityFile paramater - adding
,IdentityFile=$HOME/.ssh/id_rsa to the end of the line.
sshfs [email protected]:/full/path/to/directory /Users/cloudolife/sshfs -o volname=userdocs,reconnect,ServerAliveInterval=15,ServerAliveCountMax=3,idmap=user,auto_xattr,dev,suid,defer_permissions,noappledouble,noapplexattr,IdentityFile=$HOME/.ssh/id_rsa