MacOS Mojave remote access login screen stuck on infinite loading spinner

Solution 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

Solution 2:

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.

Solution 3:

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

Solution 4:

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