0
点赞
收藏
分享

微信扫一扫

VSCode远程连接主机

westfallon 2022-01-11 阅读 42

环境Win10+VSCode

网上文章都不管用,由于我是要通过代理连接到机房服务器,所以得先下一个ncat插件。

Download the Free Nmap Security Scanner for Linux/Mac/Windows

1. 在VSCode扩展下载Remote SSH插件

2.编辑.ssh

Host decold
    HostName <REMOTE IP>
    User decold
    ProxyCommand C:\..\ncat.exe --proxy-type http --proxy <IP>:<PORT> %h %p

3.连接,注意选择对应的服务器操作系统

 

出现下面这个就表示连上了,

 

4. 在工作区可以打开远端文件夹,和本地跑起来基本一模一样,舒服

 

 

举报

相关推荐

0 条评论