faq-sshfs.md
... ...
@@ -17,31 +17,35 @@ Prior to installing, you should make sure that [password-less-ssh](faq-setting-u
17 17
18 18
`sshfs username@remotesystem:/full/path/to/directory /mount/point`
19 19
20
-For example, `sshfs meyer@schl15:/nfs/userdocs/ps/meyer /sshfs` would use
20
+For example, `sshfs meyer@schl15:/nfs/userdocs/ps/meyer ~/userdocs/home` would use
21 21
`schl15` as a host to access the directory `/nfs/userdocs/ps/meyer` (in other
22 22
words, that user's NFS home directory).
23 23
24
-On Linux, if you don't have root or sudo access, you can mount sshfs via a directory in your home directory. Just remember to specify the PATH to the directory. You will need the fuse-sshfs package installed.
24
+You should mount sshfs via a directory in your home directory. Just remember to specify the PATH to the directory.
25 25
26 26
27 27
## OS X (Mac) helpful hints
28 28
29
+As of OSX 10.15 Catilina we are not recommending to create mounts in the root path or / of the file system.
30
+
29 31
An example of mounting from OSX on your local system is as follows -
30
-`sudo mkdir -p /sshfs/userdocs`
31
-`sudo chown -R $USER /sshfs`
32
-`/usr/local/bin/sshfs oconnor@xtal200.harvard.edu:/nfs/userdocs /sshfs/userdocs -o volname=userdocs,reconnect,ServerAliveInterval=15,ServerAliveCountMax=3,idmap=user,auto_xattr,dev,suid,defer_permissions,noappledouble,noapplexattr,IdentityFile=$HOME/.ssh/sshfs-id_rsa`
33 32
34
-Basically, your local user needs to own the destination $PATH. We mount one complete filesystem from the remote site(avoids local Apple Finder issues). We give the volume a name (shows mount point on your desktop), add some additional options for server connections, etc. If you are using an [password-less-ssh](faq-setting-up-passwordless-ssh) you would add it's path to the IdentityFile paramater.
33
+```
34
+mkdir ~/userdocs
35
+/usr/local/bin/sshfs oconnor@xtal200.harvard.edu:/nfs/userdocs /Users/oconnor/userdocs -o volname=userdocs,reconnect,ServerAliveInterval=15,ServerAliveCountMax=3,idmap=user,auto_xattr,dev,suid,defer_permissions,noappledouble,noapplexattr
36
+```
37
+
38
+You should mount one complete filesystem from the remote site, so this would be anything listed in /nfs for example. This avoids local Apple Finder issues. We give the volume a name `volname=userdocs` (shows mount point on your desktop), add some additional options for server connections, etc. If you are using an [password-less-ssh](faq-setting-up-passwordless-ssh) you would add it's path to the IdentityFile paramater - adding `,IdentityFile=$HOME/.ssh/id_rsa` to the end of the line.
35 39
36 40
### Unmounting remote filesystems
37 41
38 42
On occasion the mount may become stuck or unresponsive you can force unmount via -
39
-`diskutil umount force /sshfs/userdocs`
43
+`diskutil umount force /Users/oconnor/userdocs`
40 44
41 45
42 46
## Using helper script
43 47
44
-There is a 'helper' script available that can be used with sshfs_nfs.app for mac to automount at login. The app is simply a wrapper for sshfs-helper.sh and assumes the script exists in /Users/Shared/
48
+We created a 'helper' script available that can be used with sshfs_nfs.app for mac to automount at login. The app is simply a wrapper for sshfs-helper.sh and assumes the script exists in /Users/Shared/
45 49
46 50
If the mounts become stuck just rerun to reattach shares.
47 51
... ...
@@ -49,11 +53,9 @@ If the mounts become stuck just rerun to reattach shares.
49 53
50 54
or copy the whole set -
51 55
52
-`rsync -rlptD $USER@xtal200.harvard.edu:/net/cronus/cmcd1/arc/shared/sshfs* /Users/Shared/`
53
-
54
-First run use sudo to create /nfs mount points.
55
-
56
-`sudo sshfs-helper.sh`
56
+```
57
+rsync -rlptD $USER@xtal200.harvard.edu:/net/cronus/cmcd1/arc/shared/sshfs* /Users/Shared/
58
+```
57 59
58 60
The script will create a file in your home folder called `.sshfs-mounts`
59 61
... ...
@@ -64,8 +66,8 @@ To open -
64 66
65 67
An example -
66 68
`#USER@HOST REMOTE_FOLDER LOCAL_FOLDER | empty local folder must exist`
67
-`oconnor@sshfs.sbgrid.org /nfs/userdocs /nfs/userdocs`
68
-`jo232@transfer.o2.hms.harvard.edu /home/myfolder /nfs/o2home`
69
+`oconnor@sshfs.sbgrid.org /nfs/userdocs /Users/oconnor/userdocs`
70
+`jo232@transfer.o2.hms.harvard.edu /home/myfolder /Users/oconnor/o2home`
69 71
70 72
For additional folders you must create the destination folder like - `mkdir /nfs/o2home`
71 73