sshfs

sshfs allows us to mount a remote VM directory on the local machine. In other words, we can use GUI based editors.

TAs apologize that we could not find out the proper way to setup sshfs on Windows…

Installation

Ubuntu/Debian users.:

$ sudo apt install sshfs

Mac users supposedly do not need additional action on your local Mac.

Connect

First, let’s create a directory for mounting a remote VM directory:

$ cd ~
$ mkdir remote_vm

Second, let’s mount a remote VM directory (in this case, /home/student on the VM will be mounted at ~/remote_vm on your local machine.):

$ sshfs -p 6543 student@localhost:/home/student ~/remote_vm

Afterwards, files in /home/student in the VM is seen in ~/remote_vm on your local machine. The following command on your local machine supposedly shows the contents of /home/student on the VM.:

$ ls remote_vm

Disconnect

We can unmount the mounted remote directory by the following command.:

$ fusermount -u ~/remote_vm