Scope: Mount and interact with files/directories located on a remote machine via SSHFS.
macOS, Linux(Debian, Ubuntu)
Step 1:
Linux:
If you don't have it, download and install the SSHFS package:
sudo apt-get install -y sshfs
macOS:
If you don't have it, download & install the FUSE, SSHFS packages here: https://osxfuse.github.io/
Step 2: Create a mount point on your local machine, e.g.:
mkdir -p ~/mnt/mylabserver
Step 3: Mount the remote machine to your local machine, e.g.:
sshfs netid@mylabserver.nyu.edu:/sharepoint ~/mnt/mylabserver
Step 4 (optional): After you've finished working with the remote machine, dismount it, e.g.:
Linux:
cd && fusermount ~/mnt/mylabserver
macOS:
cd && umount -f ~/mnt/mylabserver
Windows
Step 1: If you don't have it, download & install these packages:
WinFSP: https://github.com/billziss-gh/winfsp/releases,
SSHFS-Win: https://github.com/billziss-gh/sshfs-win/releases .
Step 2: Mount the remote machine on your PC, e.g.:
Start --> File Explorer --> (right-click) This PC --> Map Network Drive --> (choose a drive to mount) -->
In the Folder field, enter: \\sshfs\netid@mylabserver.nyu.edu
When connecting, select the "Connect using different credentials" option, and provide your credentials for the
remote machine.
Step 3 (optional): After you've finished working with the remote machine, dismount it, e.g.:
Start --> File Explorer --> (right-click) This PC --> Map network drive --> (right-click on drive to dismount)
Disconnect network drive.
Note: You may have to include some sort of relative path if the machine has disks exported via NFS. In those cases try something like: \\sshfs\username@foo.nyu.edu/../../../..\