Sunday, September 4, 2011

How to kill Mac OS-X login session via terminal

Often times some of our customer call us stating that they lost their screen sharing session and cannot reconnect.

This usually means that the user session hung, but it is not impacting the systems operability.

To restore the session:

ssh to the system

type

ps -Ajc | grep loginwindow

Take note of the PID and type

sudo kill

Screen sharing should now be operational.

Thank you

Anthony@Clarity