Mac OS X : Restart ARDAgent from ssh

Posted by Antonin AMAND Sat, 23 Sep 2006 13:47:00 GMT

ARDAgent (Apple Remote Desktop Agent) sometimes freeze and then it may be impossible to control your remote server.

Here is the command line to restart it.

# ssh into you machine

$ ssh user@host

# locate the restart script
$ locate kickstart
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart

# restart the agent
$ cd /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources

$ sudo ./kickstart -restart -agent