Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save neatlife/ec1dccc9d2bcdc4d5a267c81d525c15f to your computer and use it in GitHub Desktop.
Save neatlife/ec1dccc9d2bcdc4d5a267c81d525c15f to your computer and use it in GitHub Desktop.
RemoteManagement "hidden" options

macOS Sierra (and possibly earlier) has some "hidden" screen sharing options:

If you're connecting to VNC using ssh tunneling, you can force macOS to listen only on localhost:

sudo defaults write /Library/Preferences/com.apple.RemoteManagement.plist VNCOnlyLocalConnections -bool yes

In newer versions of macOS, screen sharing will automatically re-lock the screen when you disconnect if it was locked when you first connected. To change this behavior, use:

sudo defaults write /Library/Preferences/com.apple.RemoteManagement RestoreMachineState -bool NO

Thanks to richter and fpescarmona for the settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment