ServerA needs to have a directory of ServerB mounted in a location, with write permissions.
I've been using SSHFS for this. I find SSHFS being very stable (100% reliable), while NFS was not so stable, besides being really hard to configure, and by default exposing to public, etc...
With SSHFS, I had to create a local user on ServerB, and put its private key on ServerA, to setup the mounts.
However, if someone ever hacks into ServerA, the hacker will be able to access any directory/file that may have 'other' read permissions anywhere on ServerB, by logging into ServerB with that user and its private key.
Is there any way to prevent this, so that the ONLY directory that this user can access is the directory that needs to be mounted on ServerA?