Implementing an Editor Proxy in WebShell
·
1 min read
·
73
Words
·
-Views
-Comments
I added an editor feature to WebShell last year. It’s finally stable now. Here’s a summary.
Research
- Few terminal products ship an editor; most only provide SFTP.
Architecture
Implementation
Key steps:
- On the server, SSH into the target machine and install/run code-server
- Use SSH port forwarding to expose the internal code-server service
- Run a proxy server to receive browser requests and forward them to the user’s machine, reaching code-server
Final Thoughts
done!