vscode:downloading with wget

每次用vscode远程ssh连接服务器时都很正常,但是当本地的vscode更新了以后,vscode就无法连接远程服务器了。但是如果用命令ssh依然可以连接,发现最后报的错误是downloading with wget

downloading with wget

排查了下原因,感觉是远程服务器无法连接外网,本地remote ssh时会自动在远程下载一个tar包

1
2
Downloading with wget
wget download failed

解决方法是想办法让服务器连上外网,或者在本地下载之后传输到服务器端,这里我是通过第一个方法解决的

因为服务器没法连接外网,但是服务器管理员提供了一个访问白名单,因此我直接把这个白名单网站加入到环境变量中解决了

其中网站为你的白名单网站

1
export http_proxy=http://127.0.0.1:8087
Error: API rate limit exceeded for 44.193.128.39. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)