VSCODE问题

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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值