This is a part 2 of the previous til on mounting remote servers locally on macOS using SSHFS and osxfuse.
In the previous TIL, I used an Automator workflow to initiate the process of mounting the
remote server. Originally, I wanted to use automount
to do it more smoothly but wasn't
able to get it to work.
However, I finally had a breakthrough based on careful re-reading of all the help I came across and the StackOverflow question I posted for more help1. The key component that I was missing was enabling the kernel extension for osxfuse.
So, if you wish to mount a remote server locally with a little bit more magic, here are the steps:
- Install SSHFS + osxfuse
- Disable SIP
- (Optional, if you need
/
mount points) Updatesynthetic.conf
- Symlink
sshfs
to/sbin/mount_sshfs
- Create
auto_XXX
with commands that will mount the remote server - Update
auto_master
- Install the osxfuse kernel extension
- Reboot and Profit!
This works well except for multiple issues that make it unusable. On my Mac, the finder will freeze or become unresponsive when the SSH connection is interrupted or dropped. This was quite annoying and several folks have opened an issue about this. Perhaps, best to wait for more updated versions of OSXFUSE to come out.
For now, the Automator workflow is an excellent choice.