It can often be beneficial to mount a remote filesystem locally to your computer, allowing you to treat the contents as if they were local to your machine. This would, for example, allow you to use a local IDE to edit/compile/run files hosted on stu.cs.jmu.edu. This article describes how to mount your JMUCS home directory using sshfs.
Most distributions package sshfs in their repositories and installing from there is far easier than compiling it yourself. For Ubuntu/Mint you could run apt-get install sshfs
.
You must create a local mountpoint before mounting the remote filesystem (this must be done only once). Then the filesystem can be mounted.
mkdir -p ~/mnt/stu sshfs <eid>@stu.cs.jmu.edu: ~/mnt/stu
Where <eid>
is your JMU username. The ~/mnt/stu
directory on your local machine now contains the contents of your JMUCS home directory. Changes made in one place will automatically be reflected in the other. See man sshfs
for additional options.
When you are done using the remote filesystem you should unmount it using the fuermount
command.
fusermount -u ~/mnt/stu
Download and install both the “FUSE for macOS” and “SSHFS” packages from this page, following the instructions as prompted. When prompted, enable the “FUSE for macOS Preference Pane” to facilitate future updates. You will also need to enable a system extension in your Security & Privacy System Preferences.''
After everything is installed correctly, you should be able to follow the same command-line instructions described in the Linux section above except that you should use the following command to unmount the remote filesystem:
umount ~/mnt/stu
WARNING FOR EARLY ADOPTERS: There are known issues with OSXFUSE on macOS 11.0 (“Big Sur”). If you upgrade to Big Sur, you will need to re-install the latest version of OSXFUSE (v3.11.0) and you may experience performance degradation.
\\sshfs\eid@stu.cs.jmu.edu
When you are done using the remote filesystem you should unmount it by right clicking the Network drive and selecting “Disconnect”