
OK, I may have misunderstood your question. Turn off screen sharing: sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off Sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -users short,usernames,seperated,by,commas -access -on -restart -agent -privs -all -allowAccessFor -specifiedUsersįind out more by running sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -hĮnable Remote Desktop via command line: 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

To add/enable Remote Management for only specific users (Add VNC flags from ghoppe's answer if you want VNC): (The last bit is thanks to Reed Stoner on ) (replace USERNAME with short username as well) read /Users/USERNAME GeneratedUID | cut -d " " -f 2` (replace USERNAME with the short username of the user) as well as: sudo dscl. To add the user you need to run: sudo dscl. If not, then we need to give the user access. If the returned value says _ssh-disabled then all users have SSH access. (Controlled using dscl)įirst off run dscl. Sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.SSH access by users is controlled by the local copy of Directory Services. To work around authentication issues like "Unknown authentication scheme" or such, it may help to enter this in Terminal (or over SSH): Xvnc4viewer: only with - FullColour, but very slow: xvnc4viewer -FullColour macserver Gnome-rdp: with xtightvncviewer installed and set as default vncviewer (run sudo update-alternatives -set vncviewer /usr/bin/xtightvncviewer in terminal) VirtualBox) running on the remote host can capture keyboard and thus make entering the credetials impossible.

Xtightvncviewer: asks two times for authentization – first time in local terminal, the second one is on remote OS X login screen some special applications (e.g. Your Mac's desktop should appear on your screen.

IMPORTANT: Set Color depth to High color (15 bit) or better, otherwise connection will failĬlick Connect (or Save to reuse it later) Optionally fill both User name and Password to make Remmina remember Your credentials Select VNC - Virtual Network Computing as Protocolįill Server field with either IP address or hostname of the Mac

Setting up the Mac to be Accessed Remotely.
