I have admin rights at a remote Mac computer. I can access it via SSH. The Mac has another user account, which doesn't have remote access. How can I remotely (via SSH) enable remote access for the other account?
SSH access by users is controlled by the local copy of Directory Services. (Controlled using
First off run
To add the user you need to run:
(replace USERNAME with the short username of the user) as well as:
(replace USERNAME with short username as well)
(The last bit is thanks to Reed Stoner on lists.apple.com)
To add/enable Remote Management for only specific users (Add VNC flags from ghoppe's answer if you want VNC):
Find out more by running
Enable Remote Desktop via command line:
Turn off screen sharing:
OK, I may have misunderstood your question. 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?
My answer gets you halfway there. After enabling Remote Desktop as shown, then connect with the remote Mac to change the user's ssh access via System Prefs.
To connect to the remote Mac, go to the Finder and select
Where x.x.x.x is the remote computer's IP address or URI. Since you connected with ssh, I presume you already know this.
Now you can use the Remote Desktop to navigate to System Prefs > Accounts and click the box to allow the other account to log in to the computer…
Based on Chealion's answer, I came up with this to allow ALL users to ssh in: