Skip to content

Instantly share code, notes, and snippets.

@jabenninghoff
Last active March 15, 2024 11:40
Show Gist options
  • Save jabenninghoff/a0341af66b3e156ab07fd2c5fdba614c to your computer and use it in GitHub Desktop.
Save jabenninghoff/a0341af66b3e156ab07fd2c5fdba614c 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.

@mahamud03
Copy link

Nice

@robderon
Copy link

Thank you for this

@MMeffert
Copy link

This fixed our issue. Thank you!

@unixvb
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