Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >
article

KB-10558: How to enable remote access for individual accounts on Mac remotely via ssh

Mac & PC Management Service ,  

1 July,18 at 04:03 AM

Question



How do I enable remote access for individual accounts on Mac remotely via ssh?



Answer

ssh access by users is controlled by the local copy of Directory Services.

Please Open Terminal on the mac. 

To ssh into the mac type:
 
ssh username@ipaddress (usually local administrator)
enter
type users password

Verify if anyone currently has network access type:
 
dscl . list /Groups | grep 'access_ssh'

If the value returned states com.apple.access_ssh-disabled all users have ssh access.  If this is not the case then the user needs to be given ssh access to the mac.

To add an individual user, Type:

sudo dseditgroup -o edit -t user -a USERNAME com.apple.access_ssh

To remove an individual user, Type:
sudo dseditgroup -o edit -t user -a USERNAME com.apple.access_ssh

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.