You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Chrome Remote Desktop无法访问Google Cloud中的Ubuntu VM

解决Google Cloud Ubuntu Pro远程桌面登录卡壳问题

可能的原因及修复步骤

  • 确认密码设置正确并生效
    通过SSH连接VM后,执行以下命令确保密码正确应用:
sudo passwd $USER

输入新密码两次,然后重启Chrome Remote Desktop服务:

sudo systemctl restart chrome-remote-desktop@$USER
  • 禁用自动登录以外的登录选项(针对LightDM桌面)
    如果使用的是Ubuntu默认的LightDM显示管理器,编辑配置文件:
sudo nano /etc/lightdm/lightdm.conf

添加或修改以下内容:

[Seat:*]
autologin-user=$USER
autologin-user-timeout=0

按Ctrl+O保存,Ctrl+X退出,然后重启LightDM:

sudo systemctl restart lightdm
  • 切换到GDM并配置自动登录(LightDM无效时尝试)
    如果上述方法没用,改用GDM显示管理器:
sudo apt install gdm3
sudo dpkg-reconfigure gdm3

在弹出的选项中选择GDM3作为默认显示管理器,接着编辑GDM配置:

sudo nano /etc/gdm3/custom.conf

取消注释以下两行,并把your-username替换为你的实际用户名:

AutomaticLoginEnable = true
AutomaticLogin = your-username

保存后重启GDM服务:

sudo systemctl restart gdm3
  • 检查Chrome Remote Desktop的用户权限
    确保你的用户加入了chrome-remote-desktop用户组:
sudo usermod -aG chrome-remote-desktop $USER

退出当前SSH连接后重新登录,再重启远程桌面服务。

  • 重置Chrome Remote Desktop配置(终极方案)
    如果以上步骤都无效,彻底重置远程桌面配置后重新设置:
sudo apt purge chrome-remote-desktop
rm -rf ~/.config/chrome-remote-desktop
sudo apt install chrome-remote-desktop

之后重新按照指引完成Chrome Remote Desktop的配置流程。


内容的提问来源于stack exchange,提问作者Peter Spiro

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.19 17:05:19