Skip to content

Instantly share code, notes, and snippets.

@apipkin
Last active October 30, 2017 13:44
Show Gist options
  • Save apipkin/9555495 to your computer and use it in GitHub Desktop.
Save apipkin/9555495 to your computer and use it in GitHub Desktop.

###To mount an SSHFS drive:###

  1. Install from osxfuse.github.io

  2. $ 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:###

  1. Find the culprit sshfs process:
    $ pgrep -lf sshfs

  2. Kill it: $ kill -9 <pid_of_sshfs_process>

  3. sudo force unmount the "unavailable" directory:
    $ sudo umount -f <mounted_dir>

  4. Remount the now "available" directory with sshfs ... and then tomorrow morning go back to step 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment