Restart macOS Screen Sharing Service via SSH

Sometimes screen sharing service on your headless Mac mini may crash. This should fix the issue:

sudo launchctl unload /System/Library/LaunchDaemons/com.apple.screensharing.plist  
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist

Leave a Reply

Your email address will not be published. Required fields are marked *