DEV Community

Jay Hankins
Jay Hankins

Posted on • Originally published at jayhankins.me on

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
Enter fullscreen mode Exit fullscreen mode

Use cask to install sshfs:

brew cask install sshfs
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

For example:

sshfs hankinsj@data.cs.purdue.edu:/homes/hankinsj/ ./purdue -o auto_cache,reconnect,defer_permissions,noappledouble
Enter fullscreen mode Exit fullscreen mode

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

Run the umount command to unmount the directory:

umount ./desired_mountpoint
Enter fullscreen mode Exit fullscreen mode

For example:

umount ~/purdue
Enter fullscreen mode Exit fullscreen mode

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!

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️