18

Say I was using Chrome Remote Desktop and remotely killed the host process on accident, causing me to get kicked off. However I still have SSH/terminal/command-line access. How can I relaunch the service so I can connect again?

Also, is it possible to install or reinstall Chrome Remote Desktop via SSH?

Alexander Taylor
  • 431
  • 1
  • 5
  • 12

2 Answers2

25

Restarting the service

Linux: The host process is a normal Linux service, so you can restart it by typing this in your SSH session:

sudo service chrome-remote-desktop restart

You should only have to wait a few seconds before it's ready for you to try connecting.

Windows, run these commands to restart the service (thanks @JohnLock):

net stop chromoting
net start chromoting

macOS:

launchctl start org.chromium.chromoting

Reinstalling the service

(I don't know how to install/reinstall Chrome Remote Desktop via SSH. Someone please update this answer if you know how.)

jamesdlin
  • 3,012
  • 22
  • 32
Alexander Taylor
  • 431
  • 1
  • 5
  • 12
  • Thanks for this! I have a machine whose Chrome Remote Desktop "server" (daemon) seems to "break" after a period of time. I used the following cron job to restart the daemon every hour which allows me to connect to the machine at any time: `0 * * * * service chrome-remote-desktop restart` – rinogo May 11 '21 at 17:28
  • `sudo` seems to be optional (for me, at least). – rinogo May 11 '21 at 17:28
  • 1
    Failed to restart chrome-remote-desktop.service: Unit chrome-remote-desktop.service is masked – johndpope Jun 29 '21 at 05:59
  • hi @johndpope could you solve the "chrome-remote-desktop.service is masked" problem? – Enrique Nov 15 '21 at 18:49
  • can't remember - I think I just yielded to remotedesktop.google.com / but that's not working for me these days. – johndpope Nov 18 '21 at 00:04
3

On Windows:

    net stop chromoting
    net start chromoting
JohnLock
  • 131
  • 1