VSCode远程隧道连接卡在GitHub登录环节求助
无端口转发校园网环境下,Chromebook通过VSCode Remote Tunnel连接桌面PC时卡在GitHub登录环节
我是Stack Overflow新手,若提问方式有误请告知改进方法。
背景需求
在无端口转发权限的校园网环境下,需要从Chromebook远程控制桌面PC:此前使用Chrome远程桌面存在0.5-1秒延迟,影响效率,因此尝试使用VSCode Remote Tunnel(Remote SSH因无法端口转发不可用)。
问题描述
已在宿舍主机完成远程隧道配置,但在Chromebook的Linux Ubuntu虚拟机中的VSCode尝试连接时,始终卡在GitHub登录环节。我已花费2天共6小时查找解决方案,但未找到同类问题案例。
相关日志
GitHub - 认证日志
2023-03-09 14:52:25.239 [info] Reading sessions from keychain... 2023-03-09 14:52:25.239 [info] Getting sessions for read:org,user:email... 2023-03-09 14:52:25.239 [info] Got 0 sessions for read:org,user:email... 2023-03-09 14:52:25.239 [info] Getting sessions for all scopes... 2023-03-09 14:52:25.239 [info] Got 0 sessions for ... 2023-03-09 14:52:27.997 [info] Logging in for the following scopes: read:org user:email 2023-03-09 14:52:28.004 [info] Trying without local server... (read:org user:email) 2023-03-09 14:54:46.504 [error] User Cancelled 2023-03-09 14:54:47.387 [info] Trying with local server... (read:org user:email) 2023-03-09 14:54:59.109 [error] User Cancelled 2023-03-09 14:55:00.509 [error] Error: Cancelled at r (/usr/share/code/resources/app/extensions/github-authentication/dist/extension.js:2:1012216) at async t.GitHubServer.login (/usr/share/code/resources/app/extensions/github-authentication/dist/extension.js:2:1012839) at async t.GitHubAuthenticationProvider.createSession (/usr/share/code/resources/app/extensions/github-authentication/dist/extension.js:2:1009192) 2023-03-09 14:55:00.683 [info] Getting sessions for read:org,user:email... 2023-03-09 14:55:00.683 [info] Got 0 sessions for read:org,user:email... 2023-03-09 14:55:00.820 [info] Getting sessions for user:email... 2023-03-09 14:55:00.820 [info] Got 0 sessions for user:email... 2023-03-09 14:55:01.153 [info] Getting sessions for all scopes... 2023-03-09 14:55:01.153 [info] Got 0 sessions for ...
Microsoft - 认证日志
2023-03-09 14:55:01.139 [info] Reading sessions from secret storage... 2023-03-09 14:55:01.139 [info] Got 0 stored sessions 2023-03-09 14:55:01.139 [info] Getting sessions for the following scopes: email offline_access openid profile 2023-03-09 14:55:01.139 [info] Got 0 sessions for scopes: email offline_access openid profile
Remote - Tunnels(主机名称为"PigRig")
2023-03-09 14:52:25.194 [info] Resolving tunnel+PigRig...
Extension Host
2023-03-09 14:52:25.092 [info] Extension host with pid 8923 started 2023-03-09 14:52:25.103 [info] [resolveAuthority(tunnel,1)][0ms] activating resolver... 2023-03-09 14:52:25.133 [info] ExtensionService#_doActivateExtension ms-vscode.remote-server, startup: false, activationEvent: 'onResolveRemoteAuthority:tunnel' 2023-03-09 14:52:25.175 [info] [resolveAuthority(tunnel,1)][72ms] setting tunnel factory... 2023-03-09 14:52:25.175 [info] [resolveAuthority(tunnel,1)][72ms] invoking resolve()... 2023-03-09 14:52:25.204 [info] ExtensionService#_doActivateExtension vscode.github-authentication, startup: false, activationEvent: 'onAuthenticationRequest:github' 2023-03-09 14:52:26.177 [info] [resolveAuthority(tunnel,1)][1073ms] waiting... 2023-03-09 14:52:27.177 [info] [resolveAuthority(tunnel,1)][2074ms] waiting... ... 2023-03-09 14:54:59.294 [info] [resolveAuthority(tunnel,1)][154191ms] waiting... 2023-03-09 14:55:00.296 [info] [resolveAuthority(tunnel,1)][155193ms] waiting... 2023-03-09 14:55:00.517 [error] [resolveAuthority(tunnel,1)][155414ms] returned an error {"name":"Error","message":"Cancelled"} 2023-03-09 14:55:00.623 [info] Eager extensions activated 2023-03-09 14:55:00.770 [info] ExtensionService#_doActivateExtension ms-vscode-remote.remote-containers, startup: false, activationEvent: 'onStartupFinished' 2023-03-09 14:55:00.805 [info] ExtensionService#_doActivateExtension ms-vscode-remote.remote-wsl, startup: false, activationEvent: 'onStartupFinished' 2023-03-09 14:55:01.007 [info] ExtensionService#_doActivateExtension vscode.microsoft-authentication, startup: false, activationEvent: 'onAuthenticationRequest:microsoft'
已尝试的解决方法
- 尝试Remote - SSH,因校园网无法端口转发失败;
- 重装两台设备上的VSCode;
- 尝试网页版VSCode,无法正常打开文件夹,且偏好客户端而非网页端;
- 删除并重新配置主机端隧道,无效果。
内容的提问来源于stack exchange,提问作者Matthew
相关产品推荐
相关产品推荐

