In Linux one can use
sshfs, a filesystem in userspace (FUSE) that exposes files from an SSH server as if they were local. See if you can use sshfs in macOS.