连接之后就开始频繁重连,直到错误。
以下是 Remote-SSH 的输出:
[16:21:39.081] SSH Resolver called for "ssh-remote+7b22686f73744e616d65223a224c5554227d", attempt 31, (Reconnection)
[16:21:39.082] SSH Resolver called for host: EE
[16:21:39.082] Setting up SSH remote "EE"
[16:21:39.086] Using commit id "f30a9b73e8ffc278e71575118b6bf568f04587c8" and quality "stable" for server
[16:21:39.091] Install and start server if needed
[16:21:39.097] Using SSH config file "C:\Users\Administrator\.ssh\config"
[16:21:39.098] Running script with connection command: ssh -T -D 63661 -F "C:\Users\Administrator\.ssh\config" "LUT" bash
[16:21:39.100] Terminal shell path: C:\Windows\System32\cmd.exe
[16:21:39.485] >
[16:21:39.486] Got some output, clearing connection timeout
[16:21:40.158] > 0895ddbf6228: running
>
[16:21:40.182] > Acquiring lock on /root/.vscode-server/bin/f30a9b73e8ffc278e71575118b6bf568f0458
> 7c8/vscode-remote-lock.root.f30a9b73e8ffc278e71575118b6bf568f04587c8
>
[16:21:40.216] > Found existing installation at /root/.vscode-server/bin/f30a9b73e8ffc278e7157511
> 8b6bf568f04587c8...
> Checking /root/.vscode-server/.f30a9b73e8ffc278e71575118b6bf568f04587c8.log and
> /root/.vscode-server/.f30a9b73e8ffc278e71575118b6bf568f04587c8.pid for a running
> server
> Looking for server with pid: 114975
>
[16:21:40.250] > Found running server...
>
> *
> * Reminder: You may only use this software with Visual Studio family products,
> * as described in the license (
https://go.microsoft.com/fwlink/?linkid=2077057)
> *
>
> Checking server status on port 33377 with wget
> 0895ddbf6228: start
> SSH_AUTH_SOCK====
> DISPLAY====
> webUiAccessToken====
> listeningOn==33377==
> osReleaseId==ubuntu==
> arch==x86_64==
> tmpDir==/run/user/0==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> extInstallTime====
> serverStartTime====
> connectionToken==11111a1a-1aa1-1111-1aa1-aa11a1a11a11==
> 0895ddbf6228: end
>
[16:21:40.250] Received install output:
SSH_AUTH_SOCK====
DISPLAY====
webUiAccessToken====
listeningOn==33377==
osReleaseId==ubuntu==
arch==x86_64==
tmpDir==/run/user/0==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime====
connectionToken==11111a1a-1aa1-1111-1aa1-aa11a1a11a11==
[16:21:40.250] Remote server is listening on 33377
[16:21:40.250] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":33377},"osReleaseId":"ubuntu","arch":"x86_64","webUiAccessToken":"","sshAuthSock":"","display":"","tmpDir":"/run/user/0","platform":"linux","connectionToken":"11111a1a-1aa1-1111-1aa1-aa11a1a11a11"},"installUnpackCode":""}
[16:21:40.251] Starting forwarding server. localPort 63663 -> socksPort 63661 -> remotePort 33377
[16:21:40.252] Forwarding server listening on 63663
[16:21:40.252] Waiting for ssh tunnel to be ready
[16:21:40.253] Tunneled 33377 to local port 63663
[16:21:40.254] Resolved "ssh-remote+7b22686f73744e616d65223a224c5554227d" to "127.0.0.1:63663"
[16:21:40.254] [Forwarding server 63663] Got connection 0
[16:21:40.260] ------
[16:21:40.307] [Forwarding server 63663] Got connection 1
[16:21:44.371] >
[16:21:48.698] >
[16:21:48.845] >
[16:21:50.030] >
[16:21:52.022] >
[16:22:10.062] >
[16:22:10.143] >
[16:22:11.270] >
[16:22:15.012] >
[16:22:32.544] >
[16:22:37.967] >
[16:22:38.031] >
*Remote-SSH server 的日志*
[2021-03-15 15:38:20.640] [remoteagent] [info]
*
* Visual Studio Code Server
*
* Reminder: You may only use this software with Visual Studio family products,
* as described in the license
https://aka.ms/vscode-remote/license*
[2021-03-15 15:38:20.640] [remoteagent] [info] Extension host agent started.
[2021-03-15 15:38:21.103] [remoteagent] [error] [127.0.0.1][b21b8e7a][ManagementConnection] Unknown reconnection token.
[2021-03-15 15:38:21.141] [remoteagent] [error] [127.0.0.1][b25874c4][ExtensionHostConnection] Unknown reconnection token.
[2021-03-15 15:57:14.387] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] New connection established.
[2021-03-15 15:57:14.397] [remoteagent] [info] [127.0.0.1][2c5fe2d0][ExtensionHostConnection] New connection established.
[2021-03-15 15:57:14.504] [remoteagent] [info] [127.0.0.1][2c5fe2d0][ExtensionHostConnection] <116226> Launched Extension Host Process.
[2021-03-15 15:58:19.876] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 15:58:19.899] [remoteagent] [info] [127.0.0.1][2c5fe2d0][ExtensionHostConnection] The client has reconnected.
[2021-03-15 15:58:42.879] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 15:59:05.899] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 15:59:28.877] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:04:24.862] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:00:13.515] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:05:07.783] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:05:29.137] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:05:29.149] [remoteagent] [info] [127.0.0.1][2c5fe2d0][ExtensionHostConnection] The client has reconnected.
[2021-03-15 16:05:50.407] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:06:11.723] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:02:00.013] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:02:26.208] [remoteagent] [info] [127.0.0.1][2c5fe2d0][ExtensionHostConnection] The client has reconnected.
[2021-03-15 16:05:47.435] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:10:41.682] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:11:02.953] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:11:24.230] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:11:45.476] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:12:11.622] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:12:32.879] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:13:00.825] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:08:49.203] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:09:44.802] [remoteagent] [info] [127.0.0.1][2c5fe2d0][ExtensionHostConnection] The client has reconnected.
[2021-03-15 16:10:05.838] [remoteagent] [info] [127.0.0.1][2c5fe2d0][ExtensionHostConnection] The client has reconnected.
[2021-03-15 16:10:34.228] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:10:34.258] [remoteagent] [info] [127.0.0.1][2c5fe2d0][ExtensionHostConnection] The client has reconnected.
[2021-03-15 16:10:55.170] [remoteagent] [info] [127.0.0.1][2c5fe2d0][ExtensionHostConnection] The client has reconnected.
[2021-03-15 16:16:03.148] [remoteagent] [info] [127.0.0.1][2c5fe2d0][ExtensionHostConnection] The client has reconnected.
[2021-03-15 16:16:30.154] [remoteagent] [info] [127.0.0.1][2c5fe2d0][ExtensionHostConnection] The client has reconnected.
[2021-03-15 16:12:22.183] [remoteagent] [info] [127.0.0.1][2c5fe2d0][ExtensionHostConnection] The client has reconnected.
[2021-03-15 16:17:37.372] [remoteagent] [info] [127.0.0.1][2c5fe2d0][ExtensionHostConnection] The client has reconnected.
[2021-03-15 16:18:12.865] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:18:34.117] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:18:55.384] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:19:16.689] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:19:37.874] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:19:59.175] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:20:20.479] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:20:41.777] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
[2021-03-15 16:21:03.122] [remoteagent] [info] [127.0.0.1][e47770ee][ManagementConnection] The client has reconnected.
我尝试了网上所有方法还是不行,有的说是中文插件问题,有的说是 GO 插件问题,我都卸载了所有插件还是不起效。
请问有什么好的解决方法或者排查问题的办法吗?感激不尽。
版本信息:
Version: 1.54.1 (system setup)
Commit: f30a9b73e8ffc278e71575118b6bf568f04587c8
Date: 2021-03-04T22:38:31.419Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Windows_NT x64 6.3.9600