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?

link|improve this question

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
feedback

3 Answers

up vote 3 down vote accepted

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
link|improve this answer
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
feedback

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

link|improve this answer
feedback

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.

link|improve this answer
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
feedback

Your Answer

 
or
required, but never shown

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