我在 Google Compute Engine VM 中运行 CentOS 7,并尝试通过 Chrome 远程桌面连接到它。当我运行 start-host 命令时,它失败并显示“OAuth 错误”并且没有更多信息。
我使用 Chrome 访问了https://remotedesktop.google.com/headless网站,填写了选项,然后完成了授权阶段。没有 CentOS 的选项,所以我选择了“Debian”,当它给我连接命令时,我用 CentOS 的 /usr/lib64/chrome-remote-desktop/start-host 之一替换了 start-host 的路径,并且运行结果命令失败。
我进行了可能的网络搜索,发现了一些相当旧且无用的信息,但没有任何有用的信息。
如果我无法让 Chrome 远程桌面工作,我愿意尝试另一种方法来运行基于 GUI 的应用程序(在本例中为 IBM 的 oneWEX)。我可以让 X11 进行远程工作,但还不足以运行 oneWEX。
这是我从 Chrome 站点获得的命令,经过修改以适用于 CentOS:
DISPLAY= /usr/lib64/chrome-remote-desktop/start-host --code="<code>" --redirect-url="https://remotedesktop.google.com/_/oauthredirect" --name=
Run Code Online (Sandbox Code Playgroud)
start-host 命令询问计算机名称和 PIN 等预期问题,然后给出错误:
Couldn't start host: OAuth error.
Run Code Online (Sandbox Code Playgroud)