Posted on 12-11-2023 11:10 AM
hello all, does anyone know how to disable remote login using a profile/policy
Posted on 12-11-2023 12:48 PM
The terminal command for disabling remote login is:
sudo systemsetup -f -setremotelogin off
So you should be able to create a policy with that line in Files and Processes > Execute Command to disable remote login on a computer.
Posted on 12-11-2023 12:50 PM
(Except no sudo, since Jamf is executing as root already.)
Posted on 12-12-2023 06:37 AM
The command @mdp should get the job done. However using the enable/disable Remote Desktop MDM command in under the Macs inventory record > Management > Management Commands is much faster. You can also issue the MDM command as a mass action.
Posted on 02-29-2024 05:33 PM
I have a similar need to the OP and found this thread. Thanks so much!
I am going to assume from this that there isn't a config profile method that can be utilized to limit the removal?