Forum Moderators: bakedjake

Message Too Old, No Replies

Remote Shut Down Linux

         

yllai

6:18 am on Apr 16, 2004 (gmt 0)

10+ Year Member



How can I remotely shut down Linux? I have SSH Secure Shell in another computer, can I shut down Linux throught it? What is the command?

Wertigon

8:22 am on Apr 16, 2004 (gmt 0)

10+ Year Member



Yes you can. However be aware that once shut down you cannot remotely connect to it again. Just log in on the machine. It's the same command as you shut down a regular computer with - that is, "shutdown".

ByronM

3:34 pm on Apr 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If it is a remote machine, shutdown and a modern computer will actually turn it OFF.

If you just want to reboot, you can do shutdown -r or simply time "reboot" in most cases.

karmov

4:00 pm on Apr 17, 2004 (gmt 0)

10+ Year Member



Be very wary of "shutdown" remotely. Be 100% sure that's what you want to do (turn off the server and not have it come up again). Even reboot can be a little tricky if you're messing with the startup scripts. Check and double check any changes you might have made to anything that would affect the startup if you're going to reboot remotely. Then cross your fingers :)

Marcus Aurelius

8:51 pm on Apr 18, 2004 (gmt 0)

10+ Year Member



Shutdown -h now

would work.