通过 SSH 修改 mac VNC Server 密码

通过 SSH 修改 Mac VNC Server 密码

来源:Stackexchange

PS: 我的系统为 macOS Sierra 10.12,使用以下命令修改成功。

输入以下命令:

sudo  /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw <mypasswd> -restart -agent -privs -all

Terminal 提示输入 mac 账户密码。

Password:

系统反馈:

Starting...
Activated Remote Management.
Stopped ARD Agent.
target: Set user remote control privileges.
target: Set user remote access.
Set the client options.
Done.

OK~ 修改成功。