August 29, 2016
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.
Use cask to install osxfuse:
brew cask install osxfuse
Use cask to install
brew cask install sshfs
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.
umount command 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!