How To - Enable ARD Access through a SSH Connection in Terminal

Support Desk -

 

  1. Launch Terminal on your machine. Connect to the target machine via SSH by typing: ssh USERNAME@MACHINENAME.local. You can also use ssh USERNAME@IPADDRESS if you are connecting to a public IP address OR if you have already established a VPN connection. You will be asked for your password. The Terminal will NOT give you any feedback when typing your password. Press Enter / Return when complete.
  2. Type: sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -restart -agent -privs -all
  3. Launch ARD, you will now have access to the target machine via ARD. To take control target machine you can use the same username and password you used in Step 1. 

 

Other Helpful Unix Command to Login via ARD

osascript -e ‘tell application “System Events” to keystroke “username”’;

osascript -e ‘tell application “System Events” to keystroke tab’;

osascript -e ‘tell application “System Events” to delay 0.5’;

osascript -e ‘tell application “System Events” to keystroke “password”’;

osascript -e ‘tell application “System Events” to delay 0.5’;

osascript -e ‘tell application “System Events” to keystroke return’

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk