Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

setremotelogin: Turning Remote Login on or off requires Full Disk Access privileges.

##Enabling SSH
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist

##Disabling SSH
sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist

#To check if is on or off
sudo systemsetup -getremotelogin
 
PREVIOUS NEXT
Tagged: #Turning #Remote #Login #requires #Full #Disk #Access
ADD COMMENT
Topic
Name
9+1 =