LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-05-2006, 10:47 PM   #1
micro_xii
Member
 
Registered: Sep 2006
Posts: 140

Rep: Reputation: 15
Question 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
 
Old 12-05-2006, 10:54 PM   #2
matthewg42
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, 11:39 AM   #3
vargadanis
Member
 
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, 12:08 PM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
(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
 
Old 12-07-2006, 07:51 AM   #5
Emmanuel_uk
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
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)
 
  


Reply


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 07:59 AM
how to shutdown,restart and log off windows machine remotely through a linux machine deepak rawat Fedora 1 05-23-2006 02:25 AM
How to remotely shutdown a process darksoul04 Linux - Networking 6 09-11-2005 11:56 PM
Script to shutdown remotely a server dtournas Slackware 3 02-06-2005 03:26 PM
Shutdown the System remotely via PHP-Script? linuxuser2005 Linux - General 2 08-30-2004 12:53 PM


All times are GMT -5. The time now is 06:42 AM.

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