Can you explain how this works? Doesn’t this also stop you from connecting to it over ssh via vs code?
(I'm a vimmer anyway... And emacs is too bloated to fit too, conveniently.)
If you connect via ssh, you could use Tramp. It does not install emacs on the target, but instead use a somewhat permanent connection as a tunnel for most emacs commands (transparently). Works too with docker, podman, distrobox, etc,...