1 上次推出了下次ssh连接老师连接不上怎么办
根据报错信息,找到extension文件位置,删除remotessh ,再重新装一下
2VSCode配置并连接远程服务器报错,Error: Running the contributed command: ‘_workbench.downloadResource’ failed
原因:内网,无法下载
解决
1、找到报错日志里面的COMMIT_ID
例如我的是379476f0e13988d90fab105c5c19e7abc8b1dea8
到服务器对应的~/.vscode-server/bin/目录下也能找到
2、外网下载(首次使用VSCode链接服务器时,服务器需要下载的)(大约40多M)
https://update.code.visualstudio.com/commit:379476f0e13988d90fab105c5c19e7abc8b1dea8/server-linux-x64/stable
3、下载完毕后,将下载的文件upload到Remote Server的~/.vscode-server/bin/xxx文件夹下,
同时删除其他文件,最后再使用 “tar -xvf vscode-server-linux-x64.tar.gz --strip-components 1” 解压文件
3.无法连接到远程扩展主机服务器 (错误: WebSocket close with status code 1006)
https://stackoverflow.com/questions/60507713/vscode-remote-ssh-connection-failed
1 Update the sshd_config file in the host machine.
2 Follow this command /etc/ssh/sshd_config and then set AllowTcpForwarding to yes
3 Restart ssh on the host machine sudo systemctl restart ssh
Detele the .vscode-server in host machine rm -rf /home/<user_name>/.vscode-server
4 Now connect through VS Code again. Hopefully it will work