So yeah,the title says it all,is there anyway to do it?
Thanks
So yeah,the title says it all,is there anyway to do it?
Thanks
If it is a Linux (or other UNIX-like) OS and you have ssh access and root access, you can give the remote PC the command "init 0". That is a zero.
Tim
Cyberpower PC, Core i5 2500 3.3 gHz, 8GB DDR3, ATI 6770 1GB, Samsung BX 2440 LED 1080p, 1 TB SATA III, 2 TB SATA III, Siduction Linux 64-bit
Yes the other computer has Ubuntu too,can you explain a bit more?
Thanks.
On the remote machine (which you want to power off) install openssh-server:
On your computer open up a terminal and:Code:apt-get install openssh-server
eg:Code:ssh -l yourusername_on_the_remote_computer IP_OF_REMOTE_COMPUTER
There will be a warning about adding the computer to the trusted ones.Code:ssh -l john 192.168.1.100
Enter: yes
Then:
You can execute any command just like you sit in front of the remote computer...Code:sudo halt
Good luck!
On the computer you want to shut down, install openssh-server.
To shut down the computer remotely:Code:sudo apt-get install openssh-server
Open a terminal (ctrl+alt+t) and type:
Replace <username> and <machine ip address> with the username and ip address of the machine you want to shut down. If you don't know the ip address, type "ifconfig" into the terminal (on the machine you want to turn off remotely)Code:ssh <username>@<machine ip address>
Once your have logged in successfully with ssh, run:
Alternatively, you can run "sudo shutdown -h now" or "sudo halt".Code:init 0
Last edited by MDguy; August 6th, 2011 at 09:05 PM.
Ok I got the idea,1 more question,I could just run downstairs and check my other computers IP,but is there anyway to see it without doing that?Im using wlan.
You can check it via your router's web interface.
You can also use the hostname of the machine or assign a fix address to the computer via the router's DHCP fixed leases table.
set a static ip address or use the computer's name
eg
ssh me@lucid-desktop.local
instead of
ssh me@10.0.0.50
my computer name is lucid-desktop you add the .local to it and you will have a name instead of a ip address to connect to
Last edited by pqwoerituytrueiwoq; August 6th, 2011 at 09:23 PM. Reason: spelling
Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
Putting your Networked Printer's scanner software to shame PHP Scanner Server
I frequently edit my post when I have the last post
Oh Is there a way to find out username and hostname of that computer?????
ssh: Could not resolve hostname xxx: Name or service not known
Bookmarks