Shut down your Mac remotely

Apr 04, '01 09:16:49AM

Contributed by: robg

If, for some reason (can someone think of one?) you'd like to shut down your Mac from another machine, here's how you do it.

  1. Connect to your Mac remotely via SSH or telnet.
  2. Become root ('su' and enter your root password)
  3. Type sync to clear the buffer (may not be necessary with the next command, but I'm cautious!)
  4. Type halt to shut down the machine.
This will (obviously) end your telnet/SSH connection shortly after you type it ;-).

I just tried this from my PC to my Mac, and it did exactly what it was supposed to do ... my Mac shut down cleanly. No errors of any sort on restart, but I did lose my '3 day, 4:54' uptime! I'm not quite sure why one would want to do this, but it is possible.

Comments (7)


Mac OS X Hints
http://hints.macworld.com/article.php?story=2001040409164989