- Install MacPorts
- e.g. for Montery v12, simply download the
.pkg
and install
- Install sshfs
- Install macFuse
- need to allow system software from Benjamin Fleischer in System Preferences to use this extension
- Create a directory and mount the remote file system
mkidr local_fs
sshfs $USERNAME@HOST:DIR local_fs
- if the server requires key authentication, use
sshfs $USERNAME@HOST:DIR local_fs -o IdentityFile=PATH_TO_KEY
- (note) If the connection is broken, the local directory that the remote system is mounted might show as busy but cannot be read or written to. One can unmount the fs by
umount -f local_fs
and mount at local_fs
again (as in step 3)
Reference