使用VS Code Remote SSH连接上服务器实现远程开发

1 下载VSCODE, Windows版本

https://code.visualstudio.com/updates/v1_85

2 安装插件

3 配置SSH密钥,上传公钥到服务器

4连接成功,直接操作远程目录和文件 

 

远程开发
https://code.visualstudio.com/docs/remote/remote-overview

https://www.jianshu.com/p/37bbec378800

https://zhuanlan.zhihu.com/p/294933020


vscode连接不上远程服务器界面一直卡在“Setting up SSH Host XX:Copying VS Code Server to host with scp”
解决问题的过程:

https://blog.csdn.net/m0_46210452/article/details/132364248

 

一般这个时候,/home/xxxx/.vscode-server/bin(具体路径视情况而定)文件夹下会有一个这个文件夹,它的名字包含一长串数字,下文中我们将这串数字称为commit_id

 把commitidcommitid使https://update.code.visualstudio.com/commit:{commit_id}/server-linux-x64/stable

举例:

1.浏览器输入,并下载文件,

https://update.code.visualstudio.com/commit:8b3775030ed1a69b13e4f4c628c612102e30a681/server-linux-x64/stable

2. 把下载tar文件存入 ~/.vscode-server/bin 

cp ~/Downloads/vscode-server-linux-x64.tar.gz .

3.解压

tar -zxvf vscode-server-linux-x64.tar.gz --strip-components 1


VS Code安装更新失败原因及解决办法
https://blog.csdn.net/cjhxydream/article/details/107246909

 

posted @   七星望  阅读(443)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· 清华大学推出第四讲使用 DeepSeek + DeepResearch 让科研像聊天一样简单!
· 实操Deepseek接入个人知识库
· CSnakes vs Python.NET:高效嵌入与灵活互通的跨语言方案对比
· Plotly.NET 一个为 .NET 打造的强大开源交互式图表库
点击右上角即可分享
微信分享提示