
Since you connected with ssh, I presume you already know this.Secure access to work email, data, and apps on macOS devices. Where x.x.x.x is the remote computer's IP address or URI. type in the Server Address for your computer: vnc://x.x.x.x To connect to the remote Mac, go to the Finder and select Connect to Server… under the Go menu. After enabling Remote Desktop as shown, then connect with the remote Mac to change the user's ssh access via System Prefs. By "Remote Access" I presumed you meant remote desktop, but now I see you just want to enable ssh access for the other account, right? 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. SSH access by users is controlled by the local copy of Directory Services.
