###To mount an SSHFS drive:###
-
Install from osxfuse.github.io
-
$ sshfs -p 22 <user>@<host>:/path/to/directory/to/mount ~/Desktop/<mount_directory> -oauto_cache,reconnect,noappledouble,negative_vncache,volname=<volume_name>
###If the mount disconnects due to network failure (or something else), fix it by:###
-
Find the culprit sshfs process:
$ pgrep -lf sshfs
-
Kill it:
$ kill -9 <pid_of_sshfs_process>
-
sudo force unmount the "unavailable" directory:
$ sudo umount -f <mounted_dir>
-
Remount the now "available" directory with sshfs ... and then tomorrow morning go back to step 1.