Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

brian9271

macrumors 6502
Original poster
Jan 31, 2008
318
0
Next door
Hey there, I was wondering if I could shut down my Macbook remotely using terminal, so lets say I'm using my friends Macbook at his place, then I type my Ip Address into terminal and I shut it down, what commands would I need to type?
 
Do a man on shutdown in terminal:
Code:
man shutdown

Looks like:
Code:
shutdown -h now
will do the trick.
 
Don't forget to "allow" Remote Login" (SSH) first by enabling that in the System Prefs - Sharing tab.

As you will understand by default remote login is off. Would be a HUGE security risk if it is left on without a very strong password!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.