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:will do the trick.Code:shutdown -h now
After you use ssh to log into your computer.
Figured he knew that already, based on his question.
Uh, no, not really, where do I type my Ip Address in in order to shutdown my Mac?
ssh username@IPAddress
sudo shutdown -h now
job done.
[doublepost=1481151036][/doublepost]and how do we do that ?After you use ssh to log into your computer.