1000字范文,内容丰富有趣,学习的好帮手!
1000字范文 > VSCode 使用ssh远程链接服务器时报错 Downloading VS Code Server failed

VSCode 使用ssh远程链接服务器时报错 Downloading VS Code Server failed

时间:2023-08-15 15:13:17

相关推荐

VSCode 使用ssh远程链接服务器时报错 Downloading VS Code Server failed

目录

问题描述问题解决

问题描述

之前VScode一直能用ssh连接服务器,后来被挖矿病毒攻击了一次,解决之后突然连不上了,提示

Could not establish connection to "XXX",Downloading VS Code Server failed - Please install either curl or wget on the remote

问题解决

首先确认你能够用ssh连接到你的服务器,私钥没有错误。

连上服务器之后

cd ~llrm -rf .vscode-server

删除远端的vscode服务器。

然后输入wget或者curl检查有无安装这两个工具。

如果提示

Command 'wget' not found, but can be installed with:apt install wget

说明没有wget或者出于各种原因无法使用这个指令。

尝试进行安装

sudo apt-get install wgetsudo apt-get install curl

如果再次测试还没有用,尝试先卸载再安装

sudo apt-get remove wgetsudo apt-get install wgetsudo apt-get remove curlsudo apt-get install curl

完成后返回vscode,连接成功。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。