Implementing an Editor Proxy in WebShell
4月 5, 2023
·
1 分钟阅读时长
·
73
字
·
-阅读
-评论
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!

