You are not logged in.
sshfs works perfectly until a connection drops, after which all apps that have the mounted dir open freeze indefinitely, until I kill -9 sshfs; fusermount -u (even with the lazy unmount option) does not work. Is there a way to impose some sort of timeout rather than writing a separate script just to kill -9 sshfs and remount?
Offline
try this:
/etc/ssh/ssh_config
ServerAliveInterval 15then call sshfs with the reconnect parameter:
% sshfs -oreconnect user@host:/ /pathᶘ ᵒᴥᵒᶅ
Offline
Thanks! Although I still have to kill -9 sshfs if I am disconnecting from the network (intentionally), it does reconnect without issue, in case the connection experiences transient drops. I now have to make sure that the dir is not accessed by any program when I disconnect from the network.
Offline
You can fusermount -u before you disconnect from the network, thus saving yourself the "killall -9 sshfs".
Offline