VSCode版本vscode version:(version 1.82)
已下載擴(kuò)展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轉(zhuǎn)戰(zhàn)vscode,在連接服務(wù)器時(shí)遇到了一些問題。根據(jù)一些較為古早的教程,應(yīng)當(dāng)下載上述的幾個(gè)擴(kuò)展插件,然后在Remote Explorer當(dāng)中選擇SSH target以連接服務(wù)器。但是在目前版本下下載上述擴(kuò)展插件后Remote Explorer里沒有SSH target選項(xiàng),我選擇了SSH tunnel,,顯示“通道不存在 the tunnel isn't existed”未能成功連接服務(wù)器。
當(dāng)時(shí)原問題如下:
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名稱。文章來源:http://www.zghlxwxcb.cn/news/detail-857363.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-857363.html
到了這里,關(guān)于VScode中下載了插件但是無法找到SSH Target連接服務(wù)器的解決方法(CANNOT find SSH Target in remote explorer)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!