LinuxQuestions.org
Review your favorite Linux distribution.
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 09-28-2004, 06:53 PM   #1
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Rep: Reputation: 15
restart linux from SSH connection?


Hey guys, me again with yet another jog needed. How do I restart my linux machine from SSH connection? um Hard Reset is what I need, or forced restart.

Any help is appreciated.
 
Old 09-28-2004, 07:03 PM   #2
dsegel
Member
 
Registered: Aug 2004
Location: Davis, California
Distribution: Gentoo, always Gentoo.
Posts: 159

Rep: Reputation: 30
There's a 'reboot' command that will force a reboot, but if there's something wrong that prevents you from logging in remotely there's nothing you can do.

'reboot' might be the same as 'shutdown -r now'.
 
Old 09-28-2004, 07:03 PM   #3
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
What happens if you run 'reboot' as root from ssh?

http://linux.about.com/library/cmd/blcmdl8_reboot.htm
 
Old 09-28-2004, 07:05 PM   #4
dsegel
Member
 
Registered: Aug 2004
Location: Davis, California
Distribution: Gentoo, always Gentoo.
Posts: 159

Rep: Reputation: 30
Quote:
Originally posted by mjmwired
What happens if you run 'reboot' as root from ssh?

http://linux.about.com/library/cmd/blcmdl8_reboot.htm
The system will reboot, and in the process will shut down the sshd daemon and you will be disconnected. After the reboot is complete you can log in again, assuming sshd is running (or startable via inetd.)
 
Old 09-28-2004, 07:15 PM   #5
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Original Poster
Rep: Reputation: 15
I attempted the first two commands and got an error message saying;

Broadcast message from root (pts/2) (Tue Sep 28 18:15:24 2004):

The system is going down for reboot NOW!
init: /dev/initctl: No such file or directory
 
Old 09-28-2004, 08:14 PM   #6
dsegel
Member
 
Registered: Aug 2004
Location: Davis, California
Distribution: Gentoo, always Gentoo.
Posts: 159

Rep: Reputation: 30
I think /dev/initctl is used to pass messages to init, but I have no idea why it would be missing. Are you running Red Hat 9?

Does the system ever reboot, or does it just hang after giving you that message?
 
Old 09-28-2004, 11:22 PM   #7
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Original Poster
Rep: Reputation: 15
it's a redhat 7.3, it doesn't freeze, just gives me the prompt back.
 
  


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
How to restart dhcpd on another server using SSH? hueofwind Linux - Newbie 17 11-23-2005 07:07 AM
Can't SSH until restart service Da Puff Mandriva 4 09-14-2005 09:51 PM
SSH restart makes new keys? Consul Linux - Security 1 07-08-2005 10:14 PM
SSH connection refused using linux box 90coders Linux - Security 3 10-18-2003 03:53 AM
SSH connection Windows to Linux time112852 Linux - Networking 11 09-19-2003 03:11 AM


All times are GMT -5. The time now is 09:50 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