【发布时间】:2020-11-29 00:54:22
【问题描述】:
在过去的几个月里,我使用this VSCode Extension 通过 SSH 在 linux 服务器上远程工作。我偶尔会遇到连接问题,但从终端 ssh 并删除 ~/.vscode-server/ 总是可以解决它。不过,这一次并没有解决问题。我已经尝试多次删除该文件夹,我已经删除并重新安装了 VSCode 扩展,重新启动我的计算机,我能想到的一切。但是每次,它都会卡在downloading with wget,即使我让它运行了几个小时。我可以通过ssh直接连接到服务器就好了,我认识的其他人也可以通过扩展连接到服务器。还有什么我可以尝试的吗?
这是完整的安装日志(主机名已被审查):
[19:17:22.756] Log Level: 2
[19:17:22.758] remote-ssh@0.56.0
[19:17:22.758] win32 x64
[19:17:22.759] SSH Resolver called for "ssh-remote+my.host.name", attempt 1
[19:17:22.759] SSH Resolver called for host: my.host.name
[19:17:22.760] Setting up SSH remote "my.host.name"
[19:17:22.776] Using commit id "e5a624b788d92b8d34d1392e4c4d9789406efe8f" and quality "stable" for server
[19:17:22.777] Install and start server if needed
[19:17:22.800] Checking ssh with "ssh -V"
[19:17:22.831] > OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
[19:17:22.836] Running script with connection command: ssh -T -D 52457 my.host.name bash
[19:17:22.838] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[19:17:22.889] >
>
>
> ]0;C:\WINDOWS\System32\cmd.exe
[19:17:22.889] Got some output, clearing connection timeout
[19:17:22.898] >
>
>
>
[19:17:23.334] > 23b0d284345c: running
>
[19:17:23.363] > Acquiring lock on /path/to/home/.vscode-server/bin/e5a624b78
> 8d92b8d34d1392e4c4d9789406efe8f/vscode-remote-lock.my_username.e5a624b788d92b8d34
> d1392e4c4d9789406efe8f
>
[19:17:23.373] > Installing to /path/to/home/.vscode-server/bin/e5a624b788d92
> b8d34d1392e4c4d9789406efe8f...
> 23b0d284345c%%1%%
>
[19:17:23.381] > Downloading with wget
>
[19:17:27.721] > 23b0d284345c: running
> Acquiring lock on /path/to/home/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/vscode-remote-lock.my_username.e5a624b788d92b8d34d1392e4c4d9789406efe8f
> Installing to /path/to/home/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f...
> 23b0d284345c%%1%%
> Downloading with wget
>
【问题讨论】:
-
请注意,有时只需关闭 vscode 并重新打开它即可解决此问题。