So i want to know how to remotely unlock my mac via ssh so i don't have to put my password in front of people or having to make them look the other direction while i type my password. I have tried using the command on a post that is 7 months old but i get an error: "syntax error: Expected end of line but found class name. (-2741)". Any help will be appreciated, thank you in advance!
Terminal – How to Unlock Mac Remotely
sshterminalunlock
Best Answer
Set the time to require a password after sleep/screensaver in System Preferences > Security & Privacy > General to "immediately".
To lock the screen enter in the ssh session:
To stop the screensaver (=show the login screen) and unlock your user enter
Under certain circumstances you may have to enter the password one by one or first one keystroke and then the rest:
or