Shutdown other computer from mine

Asked by gotys

How to I can shut down another computer from my computer?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
Appiah
Solved:
Last query:
Last reply:
Revision history for this message
Federico Vera (fedevera) said :
#1

Interesting question...
I believe the most secure way of doing it would be using OpenSSH[1], you'll need to install a server (the machine that will send the commands) and clients (the machine you wish to power off), in which the 'sudo shutdown -h now' command must be executed.
The packages are called 'openssh-server' and 'openssh-client' and you'll find them in synaptic (System->Administration->Synaptic package manager). I currently have only one pc at my disposal so I can't test it, but it seems doable.
Other possibility could be using a remote desktop (Applications->Internet->Remote desktop viewer)...
If you don't mind my asking why do you need to shut down a computer long distance?

[1] http://www.openssh.org/

Hope it helps!

Revision history for this message
gotys (daninyu-gotys) said :
#2

It means I need IP address from client computer?
how about if client computer more then one?

I have tried with Remote desktop viewer but it doesn't work.
Thank's

Revision history for this message
Best Appiah (appiah) said :
#3

Use SSH to remotely access another computer running Linux.
Make sure SSH is installed and is running on the other computer(s).

Then ssh and login to that computer , and use shutdown. to shutdown the computer.

in gnome-terminal , ssh hostname.to.computer OR ssh 1.1.1.1
where 1.1.1.1 is the IP adress of the computer.
Yes you need an IP or a Hostname that can be reached.

If you have more then one computer you'd like to manage I'd suggest you find a tool for that.
Or just repeat the step for each computer.

Revision history for this message
gotys (daninyu-gotys) said :
#4

Thanks Appiah, that solved my question.