Shutdown a computer remotely?

Posted:
in Genius Bar edited January 2014
How would one shutdown a computer over ssh? If possible. Once shutting it down, is there a way to turn it back on over ssh (or another way)?



Curious...

Comments

  • Reply 1 of 3
    [quote]Originally posted by westonm:

    <strong>How would one shutdown a computer over ssh? If possible. Once shutting it down, is there a way to turn it back on over ssh (or another way)?



    Curious...</strong><hr></blockquote>



    sudo shutdown



    (read man shutdown for options)



    once it is shutdown how would you connect via ssh?



    What is it you are trying to achieve?



    If this is something you are trying to do on a regular basis I think you'll want a hardware control.





    Perhaps something like this:



    <a href="http://www.sophisticated.com/"; target="_blank">http://www.sophisticated.com/</a>;
  • Reply 2 of 3
    ibrowseibrowse Posts: 1,749member
    If it is a machine that you are connected to you can shut it down using AppleScripts, but you have to have Remote AppleScripts enabled on the machine that you are trying to shutdown (In the Network Prefs I believe), and it's tricky. I did it once, but I shutdown the computer I was working on about 5 times before I did it right. All I remember about it is that it was hard.
  • Reply 3 of 3
    you could just put it to sleep, that way I think you can tell it to wake up again when it detects network activity.



    Andrew
Sign In or Register to comment.