Benches / macOS
3
Enabling ssh from the command line
apple Verified ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
How do you enable ssh for a particular group via the command line?
3 replies
Sign in or join Beachball Help to reply.
0
mleacy ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
The command:
systemsetup -setremotelogin on
Will turn on SSH. How do I limit ssh to members of a specified group?
0
foilpan ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
you can try editing /etc/sshd_config to include AllowUsers or AllowGroups directives. that should do it.
0
mleacy ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thanks for the idea, but I solved it earlier today. The script is on my blog.
http://themacadmin.com/2009/03/20/script-enable-ssh-limit-to-admin-group/