Hi all,
I'm trying to automount a share from my FreeNAS system using sshfs. I am on El Capitan 10.11.6 with the latest osxfuse and sshfs downloads.
Running this command from Terminal works perfectly:
sshfs user@server:/mnt/main_pool/Media /mnt/nas -p 22 -oreconnect -oauto_cache -ofollow_symlinks -oallow_other -ouid=501 -ogid=20 -ovolname="Media"
However, when I translate that to an automount entry, the mount fails. Here's my automount file, called auto_nas:
Media -fstype=sshfs,port=22,reconnect,auto_cache,uid=501,gid=20,follow_symlinks,allow_other,IdentityFile=/path/to/private_key,volname="Media" user@server:/mnt/main_pool/Media
When automount runs (either automatically or via sudo automount -vc) , the mount does not appear, and I see the following message in the console:
automountd[1476]: mount of /mnt/nas/Media failed: Operation not permitted
I've done a bit of Googling but haven't been able to determine what exactly is failing and why. It's especially vexing since the sshfs command works great but what I think should be the equivalent automount entry fails.
Any ideas out there?
Thanks!