Start Server remotely using SSH
5,390
Solution 1
Reboot is for restarting your machine, not for starting if it is currently powered down. If you want that, you need a 'wake on lan' tool.
Solution 2
In order to connect to a host using SSH, you need the SSH service to be running in the target machine. That's the reason for the timeout.
What you need is to setup the server for Wake-on-LAN. That means that when the LAN adapter gets a certain signal, it will start the physical machine. For this, you usually have to follow certain steps:
- Make sure you have compatible hardware (i.e. A WoL capable NIC)
- Enable the option through the computer BIOS
- Configure the WoL in the OS (Usually install some packages or software)
- Enable WoL for a particular adapter (NIC) on the OS
- Also known as configuring the MagicPacket
Depending on the OS you're trying to connect to, you can Google a tutorial for setting up Wake on Lan (WoL) on your flavor of OS.
Related videos on Youtube
Comments
-
spenf10 almost 2 years
I am trying to start my server remotely with this:
ssh [email protected] /sbin/reboot
And keep getting this back
ssh: connect to host xxx.xx.xx.xx port 22: Operation timed out
Why can't I start my server?
-
jimmij almost 9 yearsYou cannot
ssh
to powered down machine. First you need to physically hit power button.
-
-
spenf10 almost 9 yearsThanks, whats a wake on lan tool? And can I power on with that?
-
steve almost 9 yearsTry this cyberciti.biz/tips/…
-
Drav Sloan almost 9 yearsOr physical access to the server to power it on.