第二步:开启VNC
开启VNC共享桌面:
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw leeco -restart -agent -privs -all
leeco为密码。
关闭VNC共享桌面:
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off
开启所有用户VNC共享桌面:
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -off -restart -agent -privs -all -allowAccessFor -allUsers
第三步:开启root用户。
MAC VNC SSH roo用户开通
原文:http://www.cnblogs.com/kisf/p/7596084.html