SSHFS allows you to mount a Raspberry Pi's files over an SSH session.
Install SSHFS on your computer with:
sudo apt install sshfs
(This assumes you are using a Debian-based system)
See osxfuse
First, create a directory on your host computer:
mkdir pi
Then mount the Raspberry Pi's filesystem to this location:
sshfs [email protected]: pi
Now enter this directory as if it is a regular folder; you should be able to see and access the contents of the Raspberry Pi:
cd pi
ls
You can also browse the Pi's filesystem using your computer's file manager (including drag-and-drop to copy files between devices), and use your computer's applications (text editors, image processing tools, and so on) to edit files directly on the Pi.