Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-05-2006, 09:47 PM   #1
Registered: Sep 2006
Posts: 140

Rep: Reputation: 15
Question shutdown server remotely


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
Old 12-05-2006, 09:54 PM   #2
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
ssh into the remote host and use "poweroff" or "reboot".
Old 12-06-2006, 10:39 AM   #3
Registered: Sep 2006
Posts: 248

Rep: Reputation: 30
or halt...
or init 0
or init 6 for reboot but not sure about that one

Do you know what is ssh?
Old 12-06-2006, 11:08 AM   #4
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
(as root or sudo)

shutdown -h now
will shutdown immediatly

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
Old 12-07-2006, 06:51 AM   #5
Senior Member
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,605

Rep: Reputation: 53
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)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remotely Shutdown Debian Box from Windows. umatur Debian 11 07-26-2006 06:59 AM
how to shutdown,restart and log off windows machine remotely through a linux machine deepak rawat Fedora 1 05-23-2006 01:25 AM
How to remotely shutdown a process darksoul04 Linux - Networking 6 09-11-2005 10:56 PM
Script to shutdown remotely a server dtournas Slackware 3 02-06-2005 02:26 PM
Shutdown the System remotely via PHP-Script? linuxuser2005 Linux - General 2 08-30-2004 11:53 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration