Click to See Complete Forum and Search --> : SSH & Shutdown?
Krome
04-13-2001, 10:17 AM
I cannot seem to reboot server through ssh sessions. DOes shutdown work w/ ssh2?
As I su root, and then passwd.
shutdown -r now says command not found???
Try su - root
You could also type the full path
/sbin/shutdown -r
linuxluis
04-13-2001, 11:53 AM
When you connect to a different machine using ssh to restart the machine you should do this.
# ssh -l root <ip address of machine>
# password <enter your password>
once you login as root you would do this
# shutdown -r now
it should restart. but if your using ssh as a regular user. you would do it this way ok
#ssh -l <username>
#password <user password>
then you would have to become su
# su - that's all you put to login as super user
# password <enter the admin password or root>
then you would use this command for shutting
down the server or restarting it
# shutdown -r now < will restart>
Hope it helps you .
tux :cool:
Krome
04-13-2001, 12:53 PM
Originally posted by blah:
<STRONG>Try su - root
You could also type the full path
/sbin/shutdown -r</STRONG>
Worked thanks :cool: !!
linuxluis
05-01-2001, 07:24 PM
I'm happy to hear that it work
Dont for get to rate me guys