Mac OS X : Restart ARDAgent from ssh
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

