14

My company has a Mac Mini that we use for iOS builds. Occasionally, one of us needs to log in to it via remote access (from a Windows PC) to update the build tools.

However, ever since updating the OS to the latest MacOS Mojave, most of the time we cannot log in remotely. On any VNC client (I use VNC Viewer but have tested this with UltraVNC as well). As soon as one of us establishes a connection to the Mac, it just shows the login screen with the username and account picture, no password prompt or buttons of any kind, and a loading spinner that just spins forever:

remote access screen is stuck with this loading spinner

I've found that I can "fix" this by physically accessing the machine and logging out of the account, but of course this is painful and impractical.

Is this just a mojave bug? Are there any ways to break out of this loop? I should mention that this didn't seem to be an issue before the mojave update.

  • Just wondering, what difference does physically accessing the machine make? Wouldn't you just see the same screen with the loading spinner there? (We are seeing this issue with a TeamViewer connection, by the way.) – mwfearnley May 10 at 9:12
6

This appears to be a bug in MacOS Mojave's VNC implementation. Thankfully, I have found a workaround.

In the settings app, select Sharing. Then select "Screen Sharing" on the left and click on the "Computer Settings..." button. Screen Sharing settings window

In the dialog that pops up, check "Anyone may request permission to control screen" and un-check "VNC viewers may control screen with password: _____". Computer Settings dialog with first option checked and second option unchecked

It removes 1 layer of security, so I would not recommend this if your mac has any public ports configured. It still uses MacOS's authentication for accounts, so as long as you have good passwords on all your user accounts it still may be reasonably secure. Hope this helps anyone looking for a workaround for this.

  • I unchecked both of the boxes in "Computer Settings" and then changed the "Allow access for:" to "Only these users:" and added the users I wanted to use. That seemed to work for me. I also updated macOS same day, so that might be it too. – Brandon Rader Dec 14 '18 at 16:41
  • @Brandon I am facing the same problem and tried "just updating" - however this seem to be not enough as the problem persists. – Robert Jan 1 at 13:58
  • 1
    This works though you'll have to use RealVNC instead. With TightVNC it claims there's no compatible security methods available. – Adambean Feb 20 at 11:14
2

So apparently this is strictly a VNC issue. I usually use Tight VNC to connect to my Mac at home from work and I was getting the same spinning login. This time I tried to use the Screen Sharing feature built into OSX (by going to Command+K and entering vnc://ipaddress:port) and it prompted for my laptop's credentials and boom I was in with no problems while my VNC window was still spinning. You may need to reboot the Mac OR see if you can restart the VNC service (good luck, so far the normal commands haven't worked for me) on the Mac.

Hope that helps!

Gerry

  • Thanks for the reply, Gerry! I should have clarified that I need a solution for connecting from a Windows PC to the Mac, so Apple's native Screen Sharing app is not an option for me. – CullenJ Nov 9 '18 at 22:40
  • Cullen, Totally understandable! If that is the case, one option might be to use Google's new ["Remote Desktop" solution:] (chrome.google.com/webstore/detail/chrome-remote-desktop/…) or something like TeamViewer. Sorry I can't be more help than that, I am still looking into solutions myself for both personal and work use. – Gerry Martin Nov 9 '18 at 23:14
  • I'm getting this too and need to connect from Windows. I've tried both Tight VNC and the RealVNC viewer but neither work; the same thing happens. Has anyone figured out a fix or workaround? – Sam Nov 13 '18 at 3:23
1

Remote login should be allowed (System Preferences -> Sharing -> Remote login).

  1. Connect via ssh: ssh user@host
  2. Run sudo pkill loginwindow
  3. Connect using VNC as usual
New contributor
Dmitry Sokolov is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
0

My solution or workaround for this is using TigerVNC and going to Lockscreen when you're done managing Mac remotely. Using this method above, haven't registered "spinning circle" issue.

0

My workaround was to run this command in order to completely prevent the login screen from appearing for VNC connections.

(Depending on your security needs, you may want to avoid this approach.)

sudo defaults write /Library/Preferences/com.apple.RemoteManagement VNCAlwaysStartOnConsole -bool true

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .