Remote Shutdown

Steve McGrane yellowdog-general@lists.terrasoftsolutions.com
Wed Nov 20 08:47:01 2002


The only advantage is that your root password would not be sent across the
network in plain text.

In either case, all is not lost.  If you are telnetting and your session
freezes, press Ctrl-], then at the telnet> prompt type quit to return to the
system.  In SSH, press ~. (by itself) and ssh will exit.

- Steve
Mac Friendly Hosting
Globaltap.com

-----Original Message-----
From: yellowdog-general-admin@lists.terrasoftsolutions.com
[mailto:yellowdog-general-admin@lists.terrasoftsolutions.com]On Behalf
Of Drew Lane
Sent: Wednesday, November 20, 2002 10:34 AM
To: yellowdog-general@lists.terrasoftsolutions.com
Subject: Re: Remote Shutdown


>
>
>Instead of poweroff, try
>
>    shutdown -h +1
>
>and then log out.  This command will initiate the shutdown process
>with a one minute delay, giving you time to get out of there before
>the telnet session freezes.
>

FYI, I think I've got this working now with:

/sbin/shutdown -h 1 &

Apparently shutdown is not in the path after your telnet,
and I used & to run shutdown in the background so that
I could exit telnet.

BTW, is there any advantage to using ssh in this situation?

Drew


_______________________________________________
yellowdog-general mailing list
yellowdog-general@lists.terrasoftsolutions.com
http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general