Funny, before I saw your post I started exploring autofs. Great minds…
The following was SUCCESSFUL:
sudo nano /etc/auto.master
add the following to the end of that file:
/- /etc/auto.sshfs.shares --timeout 15 browse
then map the share
sudo nano /etc/auto.sshfs.shares
with the following entry
/mnt/sshfsmount -fstype=fuse,noauto,idmap=user,allow_other,nonempty,identityfile=/home/osmc/.ssh/id_rsa,uid=1000,gid=1000 :sshfs\#remoteusername@remote.ip.address\:/media/directorytomap
Everything mounts properly, with the correct permissions. I no longer have any shares mounted via /etc/fstab
. I removed the entry for a SMB share and created an autofs
entry for that as well, per the linked discussion. Perfect solution.
Thanks so much for pointing me in the right direction.