Sshfs

From Earlham CS Department
Jump to navigation Jump to search

Usage

Linux and OSX

In the command line, create a new directory in the location of your choice on your computer, then run sshfs [REMOTEUSER]@SERVERNAME:[PATH] DIRECTORY .

Example: mkdir newDir && sshfs guest@cluster.earlham.edu: newDir

To unmount the sshfs directory, run umount DIRECTORY . NOTE: you need elevated privileges to unmount the directory, so make sure you actually wanted to mount it in the first place.

Windows 10

Open File explorer, right click on "My PC" in the sidebar on the left, and then click "Map network drive".

In the dialogue, choose whatever drive letter you want to assign the remote drive to in the dropdown. In the textbox, type \\sshfs\[remoteuser]@SERVER:[PATH] and check "Connect using different credentials" before pressing finish. You should now see the folder in File Explorer.

Example: \\sshfs\guest@cluster.earlham.edu:

Installation

NOTE: there are no dependencies server-side other than an ssh server.

Linux

Install SSHFS from your package manager of choice. Ex: sudo apt-get install sshfs

MacOS

Download OSXFUSE and SSHFS from the OSXFUSE Website

Windows

Install the latest version of FSP and SSHFS-Win

Note: FUSE is not supported by the Windows Subsystem for Linux on Windows, so you can only use SSHFS through normal Windows.