Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save mtrimarchi/dbabc16fd53a1dc2c6233b0784dd721c to your computer and use it in GitHub Desktop.

Select an option

Save mtrimarchi/dbabc16fd53a1dc2c6233b0784dd721c to your computer and use it in GitHub Desktop.

Revisions

  1. mtrimarchi revised this gist Dec 29, 2020. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions How_to_enable_Screen_Sharing_on_Macs_via_Terminal.md
    Original file line number Diff line number Diff line change
    @@ -8,9 +8,12 @@ Follow these steps to enable Screen Sharing via Terminal.

    The command above will work most of the time, as it uses the kickstart method of enabling remote management, which in turn enables Screen Sharing as well for all users of the device. This isn't the most secure method and it's not recommended to be used like this for long periods of time due to the potential security risks of unauthorized access, but it should serve you well as a temporary workaround for the problem.


    If maintaining security is a requirement, then entering the command below will only enable Screen Sharing.

    `sudo defaults write /var/db/launchd.db/com.apple.launchd/overrides.plist com.apple.screensharing -dict Disabled -bool false`

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


    Your Mac now has Screen Sharing enabled, and it should be accessible remotely from another Apple computer by launching the Screen Sharing app and entering the host Mac's computer name or IP address.
  2. mtrimarchi revised this gist Dec 29, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions How_to_enable_Screen_Sharing_on_Macs_via_Terminal.md
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,7 @@ Follow these steps to enable Screen Sharing via Terminal.
    2. Enter the following command into Terminal and press Enter to execute it. You will be prompted to provide admin credentials prior to processing the command.

    `sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -off -restart -agent -privs -all -allowAccessFor -allUsers`

    The command above will work most of the time, as it uses the kickstart method of enabling remote management, which in turn enables Screen Sharing as well for all users of the device. This isn't the most secure method and it's not recommended to be used like this for long periods of time due to the potential security risks of unauthorized access, but it should serve you well as a temporary workaround for the problem.

    If maintaining security is a requirement, then entering the command below will only enable Screen Sharing.
  3. mtrimarchi created this gist Dec 29, 2020.
    15 changes: 15 additions & 0 deletions How_to_enable_Screen_Sharing_on_Macs_via_Terminal.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    Follow these steps to enable Screen Sharing via Terminal.

    1. Navigate to Applications | Utilities and launch Terminal. If you're working from a keyboard only, press Command+Space Bar to launch Spotlight, and then enter Terminal in the search box to launch the app.

    2. Enter the following command into Terminal and press Enter to execute it. You will be prompted to provide admin credentials prior to processing the command.

    `sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -off -restart -agent -privs -all -allowAccessFor -allUsers`
    The command above will work most of the time, as it uses the kickstart method of enabling remote management, which in turn enables Screen Sharing as well for all users of the device. This isn't the most secure method and it's not recommended to be used like this for long periods of time due to the potential security risks of unauthorized access, but it should serve you well as a temporary workaround for the problem.

    If maintaining security is a requirement, then entering the command below will only enable Screen Sharing.

    `sudo defaults write /var/db/launchd.db/com.apple.launchd/overrides.plist com.apple.screensharing -dict Disabled -bool false`
    `sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist`

    Your Mac now has Screen Sharing enabled, and it should be accessible remotely from another Apple computer by launching the Screen Sharing app and entering the host Mac's computer name or IP address.