mac OS 命令行 启动 VNC (可使用real VNC 远程连接桌面)SSH终端启动VNC

以下地址下载 windows 版本的 VNC Viewer 来远程连接MAC OS

https://www.realvnc.com/en/connect/download/viewer/

 

https://www.realvnc.com/download/file/viewer.files/VNC-Viewer-6.18.907-Windows-64bit.exe

Mac OS X 上打开VNC Server服务(不带vnc密码):
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -off -restart -agent -privs -all -allowAccessFor -allUsers
 
 

Mac OS X 上打开VNC Server服务(带vnc密码。替换myVncPassword为自己的密码):

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

关闭方式:

sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off
--------------------- 

 

 

 

原始网站

https://blog.csdn.net/gamers/article/details/83855232

你可能感兴趣的:(计算机)