View Single Post

   
  #3 (permalink)  
Old 01-17-2008, 05:28 PM
Patrick Lehnen
 
Posts: n/a
Default Re: Rebooting and logging into Linux machine from a remote machine.

I thing you want to run

ssh root@yourmachine reboot

remember that you nead a ssh deamon running on 'yourmachine'.
ssh is part of nearly every Distribution.

After reboot you can lockin via

ssh user@yourmachine

Of course you can do this with telnet, too. I guess, the command
is something like:

echo -e "user\npasswort\nreboot" | telnet yourmachine

('\n' is the escapecommand for a new line)

But ssh or rsh is much nicer in usage. And ssh is secure.

I hope, i could help.

Patrick

On Wed, 07 Jan 2004 08:17:30 -0800, Sreenath K wrote:

> Hi all!
> I am K.Sreenath newly joined in this group. I need a help from
> you. Will you please tell me how can I reboot a LINUX PC remotely. I
> should have one machine on which script will be running and that
> script should telnet to other PC and reboot that. After rebooting PC I
> have to login to that PC and check for some configuration in that PC.
>
> Kindly send your valuble suggestions to srinathk@intotoinc.com


Reply With Quote