Home

在Linux服务器上安装VSCode Server,实现免VPN访问局域网服务器

背景 作者由于工作学习需要,需要经常在校外通过 VPN 连接到学校内网,然后再通过 SSH 或者 VSCode 连接到实验室的 Linux 服务器上写代码。代码写和跑都在 Linux 服务器上。我觉得连 VPN 有点麻烦,所以尝试用 VSCode Server 省掉这一步,虽然最后成功了,但考虑到最后的体验,还是把此方法作为了备用。 优点 不需要 VPN。 可以随时随地写代码,也支持网页(iPad)。 缺点 打开代码比较慢,输入命令也比较卡。原因是 Linux 服务器和写代码的客户端都需要和 VSCode 的服务器通信,我感觉和 VPN + SSH 体验差距比较大,也是我放弃的原因。 步骤 下载 CLI 客户端到服务器上,解压之后就是一个文件名为 code 的...

Read more

Welcome

A Post with Header Image, See Page layout for more examples. Update in 2022 If you see this page, that means you have setup your site. enjoy! :ghost: :ghost: :ghost: You may want to config the site or writing a post next. Please feel free to create an issue or send me email if you have any questions.

Read more