Kind of related, but what I'd love is a way to share part of my local file system with the remote host without using FUSE or requiring root access on the remote system. Something like:
local $ echo world > ~/src/hello
local $ sharewith-ssh --dir ~/src:/src code.example.com
Last login: Wed Aug 16 09:33:55 2022 from 1.2.3.4
code ~ $ cd /src
code /src $ cat hello
world
code /src $
I think it could be built with a local agent, a binary that you download on the remote host to intercept file system calls for a path (run it and it execs your shell with LD_PRELOAD to the library), and then forwards file system and I/O requests back to the the agent over SSH to get at those files. You could even have a permission prompt UI on the local agent to permit/deny individual reads/writes.Does anything like this exist?