How to configure OS X Lion to automatically accept requests for ScreenSharing

Solution 1:

This had me scrtching my head for a while too but I just got it nailed. The problem was that I was connecting as a different user to the user who was currently 'actively' using the screen. If you connect as the active user you get control. Facepalm!

Solution 2:

I'm also using Screen Sharing to connect to a Mac mini running Lion (from a MacBook Pro running Lion), but the Mac mini does not prompt the user to confirm the connection.

This is my setup on the Mac mini (the host):

  • Screen Sharing on (obviously)
  • Allow access for: Administrators
  • Anyone may request permission to control screen: disabled
  • VNC viewers may control screen with password: disabled

On the client, I use the Connect to Server command with an address in this form:

vnc://username:[email protected]/

The username and password are those of an administrator account on the mini.

If the username I enter is that of the currently active account on the mini, the client just connects, no questions asked. If the username is of another account, then Screen Sharing asks me if I want to share the display or connect to a virtual display.

Solution 3:

I discovered that sometimes the Finder's "Share Screen…" button will get stuck as a different user, even if you use "Connect As…" to log in as the user account that is already logged in. To work around it, you can just open Safari and type "vnc://[email protected]" into the address bar. Hit enter, and Screen Sharing will open up and ask for the password, skipping the "Ask to control" screen.