Query failed: connection to localhost:9312 failed (errno=111, msg=Connection refused). Shutdown a computer remotely? - Genius Bar Discussions on AppleInsider Forums Toggle navigation All Forums Recent Posts Sign In Shutdown a computer remotely? westonm Posted: November 22, 2002 10:33PM 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 allinone Posts: 279member November 22, 2002 11:18PM [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 ibrowse Posts: 1,749member November 25, 2002 5:35PM 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 andrew xt Posts: 133member November 27, 2002 12:11PM 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.