800-862-5965 sales@macminivault.com
Frequently Asked Questions
< All Topics

Restarting Screen Sharing via SSH

Sometimes Screen Sharing can become unresponsive for various reasons, most often due to low memory. In order to restart the Screen Sharing service, you can connect to your server using SSH.

To connect to your Mac from another Mac or a Linux computer, open Terminal and enter:

ssh username@xx-x.macminivault.com

(replace “username” with the username that you log into your Mac with, and replace “xx-x” with the actual name of your Mac mini listed in your account)

After logging in via SSH, run the following commands one at a time, pressing Enter after each command:

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

And then close the SSH session:

exit

After this is complete, try connecting via Screen Sharing again. If at this point Screen Sharing is inaccessible, please open a support ticket at secure.cyberlynk.net and provide your administrator login credentials so that we can log in locally and re-enable Screen Sharing for you.