Skip to content

Instantly share code, notes, and snippets.

Last active November 7, 2023 13:58
  • Star 16 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
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/ 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/ RestoreMachineState -bool NO

Thanks to richter and fpescarmona for the settings.

Copy link


Copy link

Thank you for this

Copy link

This fixed our issue. Thank you!

Copy link

unixvb commented Aug 8, 2023

Thx a lot!

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