How to enable Apple Remote Desktop remotely

Suppose you have Apple Remote Desktop (which, it turns out, is a very nice administrative application if you have more than 2 macs to manage, or if macs that you manage are across slow net links). Suppose you need to connect with it to a Mac where you didn’t enable it in the System Preferences.

This is how you do it:

1. ssh to the machine (you *do* have to have sshd enabled, AKA “remote login”)

2. run this command:


$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -restart -agent -privs -all

This will enable ARD for all users on the machine. Now you can connect in and fine tune whatever you want.

5 Responses to “How to enable Apple Remote Desktop remotely”

  1. DoS vulnerability in Leopard | Rick Tech Says:

    [...] run remotely. Users have to have direct access to the machine either via Keyboard and Mouse or with Apple Remote Desktop. So pretty much the average user doesn’t have to worry about this [...]

  2. jason Says:

    I have apple remote desktop set up, is there a way to send a unix command via ARD to start up “remote login” so i can ssh to their computers?

  3. billo Says:

    Well, if you have ARD, why not just open System Preferences, go to sharing, and start remote login?

  4. Witch Doctor Says:

    Billo, we want to do it via command line because we’re not trying to freak out our users.

    To enable SSH from ARD:

    Run the following UNIX command as the user “root” on the target machine:

    /usr/libexec/sshd-keygen-wrapper -i

    (This creates the SSH keys.You might get an error; no worries.)

    Then run this command as the user “root” on the target machine:
    /usr/sbin/sshd

    Then SSH in.

  5. Witch Doctor Says:

    My bad. Running sshd directly seems to not let incoming SSH connections complete fully. Instead of /usr/sbin/sshd, run:

    service ssh start

    as the root user. Voila!