XHR failed
一般是因为vscode需要先本地下载服务端binary再scp上传时无法本地下载导致的。
- 更换网络下载 https://update.code.visualstudio.com/commit:${COMMIT_ID}/server-linux-x64/stable
- 上传解压 ~/.vscode-server/bin/${COMMIT_ID}
port forward
一部分端口连接成功 Got connection 1 ,一部分端口连接失败 Failed to set up socket for dynamic port forward to remote port 。
- “remote.SSH.enableDynamicForwarding”: false
- /etc/ssh/sshd_config AllowTcpForwarding yes
VSCode在远程SSH中的问题与解决:XHR失败与端口转发
本文讲述了VSCode在使用过程中遇到xhr失败的问题,原因是由于本地下载服务端binary时的限制。解决方案包括切换到HTTPS网络下载,设置`remote.SSH.enableDynamicForwarding`和修改`sshd_config`中`AllowTcpForwarding`选项。
2027

被折叠的 条评论
为什么被折叠?



