我想使用 chrome 远程桌面从 macbook pro 远程访问我的 ubuntu 20.04(具体是通过 ssh 设置)。以前它工作正常,但发生了一些问题,我再也无法连接。我已经安装了 chrome 远程桌面,并在两个系统上使用同一个帐户登录。我只能通过远程支持选项连接。但两者remote access
都set up via ssh
不起作用。
首先,我尝试remote access
在 ubuntu 上使用“”,它提示我安装 chrome 远程扩展。继续,即表示您同意 Google 服务条款和隐私政策。我接受了:有时它显示:Could not launch the installer. Please try again later
。或sorry there was problem with intstallation
。有时蓝色圆圈一直围绕下载图标旋转。
然后我尝试使用 安装 chrome 桌面set up via ssh
。我使用了sudo dpkg -i
sudo dpkg -i chrome-remote-desktop_current_amd64.deb
Selecting previously unselected package chrome-remote-desktop.
(Reading database ... 291881 files and directories currently installed.)
Preparing to unpack chrome-remote-desktop_current_amd64.deb ...
Unpacking chrome-remote-desktop (116.0.5845.9) ...
Setting up chrome-remote-desktop (116.0.5845.9) ...
Restarting Chrome Remote Desktop hosts (sessions will be unaffected)...
Processing triggers for systemd (245.4-4ubuntu3.22) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
我也尝试使用sudo apt install
(也没有用)。然后我检查了安装状态:
systemctl status chrome-remote-desktop
● chrome-remote-desktop.service
Loaded: masked (Reason: Unit chrome-remote-desktop.service is masked.)
Active: inactive (dead)
此外我还使用了:
service "chrome-remote-desktop@$USER" status
● [email protected] - Chrome Remote Desktop instance for sidra
Loaded: loaded (/lib/systemd/system/[email protected]; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2023-07-21 16:45:14 IST; 37min ago
Main PID: 995 (code=exited, status=1/FAILURE)
Jul 21 16:45:12 sidra-server systemd[1]: Started Chrome Remote Desktop instance for sidra.
Jul 21 16:45:13 sidra-server systemd[995]: pam_unix(chrome-remote-desktop:session): session opened for user sidra by (uid=0)
Jul 21 16:45:14 sidra-server systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
Jul 21 16:45:14 sidra-server systemd[1]: [email protected]: Failed with result 'exit-code'.
如上所述,安装存在问题,因此当我从 macbook 复制令牌并将其粘贴到 ubuntu 终端时,它显然不起作用
显示 = /opt/google/chrome-remote-desktop/start-host --code="4/0AZEOvhU6VSlam7fDLDoRjD7n86PbEgl_AyjSFXWY22-01RrzizmmEIvZKaLBfaa-E7ys5g" --redirect-url="https://remotedesktop.google.com/_/oauthredirect" --name=$(主机名)
它会引发错误:
(hostname)
[0721/171137.850569:ERROR:usage_stats_consent_linux.cc(37)] No host config file found. Enter a PIN of at least six digits:
因为已经有错误,所以当我输入密码时,[0721/171240.560099:ERROR:daemon_controller_delegate_linux.cc(207)]
无法启动主机。无法启动主机。有人可以指导我如何解决吗?我在网上搜索了很多可用的解决方案,但都没有用。