VScode中下载了插件但是无法找到SSH Target连接服务器的解决方法(CANNOT find SSH Target in remote explorer)

avatar
作者
猴君
阅读量:1

VSCode版本vscode version:(version 1.82)

已下载扩展installed extensions:

Remote - SSH v0.106.4

Remote - SSH: Editing Configuration Files v0.86.0

Remote Development v0.24.0 WSL v0.81.3

        几天前我从pycharm转战vscode,在连接服务器时遇到了一些问题。根据一些较为古早的教程,应当下载上述的几个扩展插件,然后在Remote Explorer当中选择SSH target以连接服务器。但是在目前版本下下载上述扩展插件后Remote Explorer里没有SSH target选项,我选择了SSH tunnel,,显示“通道不存在 the tunnel isn't existed”未能成功连接服务器。

当时原问题如下:

I want to connect to the Linux server by SSH. But after I installed the extensions above, SSH target were still not found in the remote explorer. There were only Dev Containers and WSL Target. I have successfully connected the server by SSH in pycharm. How to solve this problem? 

I searched online and found some advices about changing the version of extension, but useless. I also found that maybe I should install Remote Containers, but I can't find it in the extensions store.

        随后我找到了解决方法,使用SSH tunnel是正确的,解决通道不存在问题的方法是在cmd中使用"icacls "key address" /grant:r 11094:"(R)"" ,其中11094需要替换成你的admin名称。

广告一刻

为您即时展示最新活动产品广告消息,让您随时掌握产品活动新动态!