New answers tagged sshfs
Talking about "option 2", it's not a good idea to mount an already mounted remote directory. If you mount it on another mount point and depending on what is your processing, you'd lose the lock mechanism. Furthermore, by default, fuse won't make any mount if the mount point is not empty. IMHO, the best way to proceed is what you say: check if the remote ...
I think you're describing autofs. Autofs mounts filesystems on demand, that is, when you try to access them. According to this Arch wiki page, it should work with sshfs. https://wiki.archlinux.org/index.php/autofs#FTP_and_SSH_.28with_FUSE.29
Top 50 recent answers are included