如何在没有互联网接入的情况下运行vscodetunel

问题描述 投票:0回答:1

我正在尝试使用此文档

在无法访问互联网的虚拟机上运行 VSCode 隧道

我在第 2 步遇到连接问题,vscode 要求我登录远程主机:

./code tunnel --accept-server-license-terms --verbose
*
* Visual Studio Code Server
*
* By using the software, you agree to
* the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
* the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
*
[2024-02-12 09:29:21] debug Starting tunnel with `code ./code tunnel --accept-server-license-terms --verbose`
[2024-02-12 09:29:21] debug starting as new singleton
[2024-02-12 09:29:21] debug No code server tunnel found, creating new one
[2024-02-12 09:29:21] debug Using file keychain storage due to: error reading keyring: Platform secure storage failure: no secret service provider or dbus session found
[2024-02-12 09:29:21] trace No token in keyring, getting a new one
? How would you like to log in to Visual Studio Code? ›
❯ Microsoft Account
  Github Account

我预计这是第四步,要求我登录...

是否有任何选项可以推迟此登录步骤?或者文档是否已经过时?

visual-studio-code remote-access
1个回答
0
投票

根据 Microsoft Learn

这被归类为“公共预览”,这意味着它可能会在没有通知的情况下进行更改等。不建议用于生产。

也就是说,您选择了身份验证方法吗?如果是这样,发生了什么?使用“vscode keyring”和“vscode token”进行简短的网络搜索会提供许多可能的解决方案,其中一些至少应该提供更多可供使用的数据。

© www.soinside.com 2019 - 2024. All rights reserved.