I tried to setup a ssh key to use sshsf. I’m sure plenty of people have done it and it works great. I couldn’t get it to work, I blame the Synology NAS. There are changes and additions particular to this NAS that I couldn’t follow. I use ssh keys to log into every pi I’ve built and re-built and have a good idea of how it should work.
If you want to take a swing, here are the resources I used:
90% of the material is here, it’s specific to the Synology NAS. I think I just was missing something and couldn’t wrap my head around it:
[Tutorial] Mounting synology nas folders into Ubuntu via SSHFS
These were pretty good as well
How To Use SSHFS to Mount Remote File Systems Over SSH
How do I sign in to DSM with RSA key pairs via SSH?
And I found these:
Authentication refused: bad ownership or modes for directory /root
use SSHFS to mount Synology NAS
I chased file permissions, moving keys around, manually loading keys into authentication_keys, messing with the sshd.config file on the NAS. I even tried to leverage:
How to Setup Raspberry Pi SSH Keys for Authentication
How did I resolve it? I changes tactics and went with NFS and passwords. It took 40 minutes to set up. Is it as secure? Nope, but I only gave the users access to the folders I needed to give them access to.