LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   shutdown server remotely (https://www.linuxquestions.org/questions/linux-newbie-8/shutdown-server-remotely-507804/)

micro_xii 12-05-2006 09:47 PM

shutdown server remotely
 
Greetings:

Im using SSH to login to another server. My questions are:
What commands to restart or shutdown a server remotely?
What are other commands regarding/relating to remote administration?
Can anyone give me best articles regarding this. thanks:study:

matthewg42 12-05-2006 09:54 PM

ssh into the remote host and use "poweroff" or "reboot".

vargadanis 12-06-2006 10:39 AM

or halt...
or init 0
or init 6 for reboot but not sure about that one

Do you know what is ssh?

ethics 12-06-2006 11:08 AM

(as root or sudo)

Code:

shutdown -h now
will shutdown immediatly

Code:

shutdown -r now
Will reboot immediatly

I expect reboot (which most distros have) is just a script that executes the above command. Check the man pages if you want to schedule it for different times etc.

As for remote admin commands well... SSH is a Secure SHell, meaning you can do anything in that shell that you can locally.

you could use webmin to setup things via a browser etc. it all depends on what you want to do

Emmanuel_uk 12-07-2006 06:51 AM

Quote:

What are other commands regarding/relating to remote administration?
same as local admin, are you not using ssh?

Good readings: linux newbie admin guide
rute guide (see LQ bookmarks)


All times are GMT -5. The time now is 04:48 AM.