第一步:ssh: [email protected]
第二步:开启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用户。
时间: 2024-10-03 06:52:39