Connect to Purdue CS Files Using SSHFS
Here's a quick tutorial on how I access my Purdue CS files remotely so that I can still use all my preferred local development tools, like Sublime Text and my shell customizations.
Install Required Software on Mac OS X #
I assume you already have Brew and Homebrew Cask installed on your Mac.
Use cask to install osxfuse:
brew cask install osxfuse
Use cask to install
brew cask install sshfs
Mount Your Remote Directory #
Run the following command to mount the directory to your local machine:
sshfs <username>@data.cs.purdue.edu:/homes/<username>/ \ ./desired_mountpoint \ -o auto_cache,reconnect,defer_permissions,noappledouble
sshfs [email protected]:/homes/hankinsj/ \ ./purdue -o auto_cache,reconnect,defer_permissions,noappledouble
Now change to the directory you mounted in. You should see the remote files in the directory, and you can interact with them just as if they were local files on your Mac.
Unmount Your Remote Directory #
umountcommand to unmount the directory:
Of course, this works on any system that supports SSH, but the case of connecting to Purdue servers to work on projects from home has been especially convenient during my time as a CS student. I've found it to be a bit flaky depending on your network connectivity, and it rarely resumes the mount from a suspend gracefully. However, it's a really convenient way to access your files remotely while still developing locally.
Are you a Purdue CS student that stumbled upon this? Did it help you? Did something not work? Let me know @jay_hankins!