Can I use SSHFS to mount the cluster filesystem on my local machine?
SSHFS allows you to mount a remote filesystem on your local machine. SSHFS relies on SSH underneath, so you should follow the "Recommended logon procedure" instructions here to configure SSH first.
Linux¶
Use the following commands to mount your home directory from Mahuika on your local machine (the same command will work for Māui, just replace the names):
# create a mount point and connect
mkdir -p ~/mahuika-home
sshfs -oauto_cache,follow_symlinks mahuika: ~/mahuika-home
Now you should be able to navigate to "~/mahuika-home" on your local machine to access your home directory on Mahuika. To unmount the directory run:
fusermount -u ~/mahuika-home
To mount a project directory, you could run:
# create a mount point and connect
mkdir -p ~/mahuika-project
sshfs -oauto_cache,follow_symlinks mahuika:/nesi/project/nesiXXXXX ~/mahuika-project
MacOS¶
We recommend using some extra options with MacOS. The following commands will mount your home directory, make it show up under devices in Finder and give the volume a sensible name:
# create a mount point and connect
mkdir -p ~/mahuika-home
sshfs mahuika: ~/mahuika-home \
-oauto_cache,follow_symlinks \
-ovolname=MahuikaHome,defer_permissions,noappledouble,local
To unmount the directory on MacOS, either eject from Finder or run:
umount ~/mahuika-home
Note
Newer MacOS does not come with SSHFS pre installed. You will have to install FUSE as SSHFS from here.