Enable Remote Login for Administrators group - macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if sudo systemsetup -getremotelogin | grep -q Off; then | |
sudo systemsetup -setremotelogin on; | |
fi | |
if ! dseditgroup com.apple.access_ssh &> /dev/null ; then | |
dseditgroup -o create -q com.apple.access_ssh; | |
fi | |
sudo dseditgroup -o edit -a admin -t group com.apple.access_ssh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment