I wonder if there is something like "user specific /etc/fstab" for fusermount? ~/.fstab, ~/.config/fstab, something the like, which would work in cooperation with FUSE.
I used
sshfs foo.bar: foo.bar/
from the home dir to connect to the remote dir (there is foo.bar directory, and I have .ssh/config set accordingly). But I didn't like the repeating of foo.bar, wanted to use simple command [cmd] foo.bar/ to mount the remote directory. After some googling I found that simple "mount foo.bar/" can be made to work with the following line in /etc/fstab (also needed to enable "user_allow_other" in /etc/fuse.conf)
[email protected]: /home/user/foo.bar fuse.sshfs user,IdentityFile=/home/user/.ssh/id_rsa,port=12345,allow_other 0 0
Now "mount foo.bar" works as intended (and "umount" works as well). But it seems kind of odd to edit system-wide file for user-specific purpose; also the settings already in .ssh/config are repeated there (port), the identity file has to be specified. Maintaining this for more sites (users) seems inconvenient and evidently not what /etc/fstab is for. Another oddity - FUSE is run by root (afaictl) when using this solution.
I would much prefer something like "fusermount foo.bar/", with user specific fstab.
Is there such a thing?