VSCode's SSH remote editing feature works by deploying a Node.js agent over port-forwarded SSH that establishes a WebSocket connection with broad capabilities including filesystem access, file editing, and shell execution. The author expresses security concerns about this approach compared to Emacs's simpler Tramp system, particularly for use on development or production servers.