How to set up your Mac mini to reboot without a monitor and keyboard
If you’re using your Mac mini as a headless server, you might have found that you cannot login using ssh or Screen Sharing after a reboot.
To overcome this, only reboot using the command sudo fdesetup authrestart
This will prompt you for the user to login with after reboot, but it won’t log in to the desktop.
It just shows the login screen on the Mac mini, but now you are able to remotely login to the Mac mini after a reboot without a monitor or keyboard attached.
# to reboot and have remote services accessible:
sudo fdesetup authrestart
# tip: make an alias of 'reboot'
echo 'sudo fdesetup authrestart' >> ~/.bash_profile
# after re-login, you can now just type: reboot