I'm having problems with sshfs, and I don't know if there's an inherent instability in the tool, or in my system, or if it's to do with my very slow internet connection — or if I'm just using it badly. Can anyone help?
fusefs-sshfs-3.7.6, FreeBSD 15.1-RELEASE-p7, on a 2013 MacBook Pro with a USB wifi dongle made out of snails.
I mount a remote file system, it works. I list the contents of the mount point, it's good. I list a sub-directory, that's good too. But as I drill down, eventually I get "No such file or directory" and at that point it's all gone! The same thing happens if I just leave it alone for more than a couple of seconds, and it's the same whether I use ls or an Xorg file manager. If I go back to the mount point then I can see the contents again, rinse and repeat. If I open a file then it will probably load, but it'll drop after a couple of seconds.
Using rclone to mount my Dropbox works perfectly, at least I haven't encountered any issues.
Here's an example of my mount command:
sshfs -oIdentityFile=[LOCAL_PATH_TO_PRIVATE_KEY] [REMOTE_USER]@[REMOTE_IPV4]:/ [LOCAL_PATH_TO_MOUNT_POINT] -oServerAliveInterval=15
I've tried a few different values of ServerAliveInterval — 15 as above, also 1, something else I think, but I don't remember any of that making any difference.
Er... so I guess I'm doing something stupid and obvious, and I'd be really grateful for any advice!
Thaks so much,
Ben