配置
本地安裝 插件 remote development
點擊左側,選擇ssh
點擊設置按鈕,選擇ssh配置文件
配置舉例
```
Host tencentcloud
HostName 175.xxxxx
User root
Port 22
```
之后點擊連接
注意在新的窗口中,需要選擇連接的host類型
此時可以在vscode的終端輸入命令
同時可以查看文件
點擊文件 打開文件夾/將文件夾添加到工作區 確定
效果
參考
https://zhuanlan.zhihu.com/p/105076372
https://zhuanlan.zhihu.com/p/96006980
https://juejin.im/post/6844904000639205384
https://blog.csdn.net/qq756684177/article/details/94236990