0

How can I reboot my server which is running XP via ssh? I think it may have partially crashed, but at any rate it isnt letting me connect via RDP.

Thanks for the help!

EDIT: I am using putty, and it doesnt seem to be prompting me for a username or password.

Is this a problem?

  • 1
    Are you running an SSH server on the machine? If not, you won't be able to connect that way. – Joe Internet Dec 26 '09 at 19:21
  • I thought I was, but apparently I am not... – Cyclone Dec 26 '09 at 20:02
3

Actually, Shutdown.exe has a parameter that allows you to specify machine name. You do not have to have an SSH server on the machine you want to reboot.

Shutdown /r /m \\WindowsXPServerName
  • But I can't even access the machine – Cyclone Dec 27 '09 at 2:20
  • What do you mean you can't access the machine? Do you mean physically or over the network? If you don't even have network access I don't know how you'd be able to reboot the machine remotely. If you just don't have physical access, you can execute Shutdown from a remote machine and just specify the computer name or IP address of the XP Server you'd like to reboot. – PaulWaldman Dec 27 '09 at 4:12
1

Actually, he needs shutdown -r if he wants to reboot the machine rather than just power it down.

-1

Well, if you have SSH access, try the shutdown command?

You want...

Shutdown -r

... This is dependent on what SSH server you are using, but most I have seen should support this.

  • Gil's answer is correct; OP's asking for reboot, so use -r instead of -s – quack quixote Dec 26 '09 at 19:37
  • changed to r... I did that wrong :( – William Hilsum Dec 26 '09 at 20:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.