使用 Command 開啟 Mac OS X 的 Remote Management

By | April 2, 2016

如果唔記得開 Mac OS X 的 Remote Management,又或者想轉 password,又或想 restart Remote Management,只要能 SSH 入去,就可以用以下 command 開啟 Remote Management (一行過,用你想要的 password 代替 “password”)

sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app
/Contents/Resources/kickstart
-activate -configure -access -off -restart -agent
-privs -all -allowAccessFor -allUsers
-clientopts -setvncpw -vncpw password