Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|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
add comment

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
share|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
add comment

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

share|improve this answer
add comment

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.

share|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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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