I have a remote MAC that is stuck on the login screen for the local user. The login screen is stuck right after the password was entered. I can login to the remote MAC with ssh and run commands. This MAC is hosting a database for other users so I would rather not restart it if possible.
Is there a command I can run that would restart the core service logind so that I do not have to restart the computer?
If the answer is no, can I restart the computer using sudo shutdown -r now remotely over ssh?