Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

seong

macrumors 65816
Original poster
Feb 11, 2010
1,031
28
Ok, here I go again.
I search Youtube and Google for three hours about remotely shutting down a Mac on the same wireless network, and I can't seem to find one.
I can't really say this is 'Hacking' since I live in a big (but not as big as you would imagine) house and I don't want to even bother shutting down the iMac on second floor when I have Macbook located in front of me and both of them are at the same network.
I know there is Apple Software that does this, but I would like to learn how you can do that for free.
 
Assuming you can log into the remote Mac with ssh you can use:

Code:
sudo shutdown -n now

to shutdown the remote machine. Note this can be a bit abrupt: logged in users do not get a chance to save their work!
 
Thanks for your information, but

Thank you for telling me the command.
I saw something like that on youtube.
The problem is, when I do
(this is an example) ssh -l seong 174.13.12.108
to log in as a ssh, it asks for the password.
I tried every single password that I know of including the computer's password, and never works.
What is the problem?
 
oh,

well, that was just an example.
It keeps saying that the password is invalid.
IDK why.
Ya, sure, the 'seong' is valid on the other machine.
It's all set. My macbook, and iMac.
Both have different name.
iMac: seong
Macbook: seong-hoon
 
well, that was just an example.
It keeps saying that the password is invalid.
IDK why.
Ya, sure, the 'seong' is valid on the other machine.
It's all set. My macbook, and iMac.
Both have different name.
iMac: seong
Macbook: seong-hoon


So if you are sat on your Macbook sshing to the iMac you are trying to log in as seong? What's your ssh setup on the remote machine (in Sharing in System Preferences iirc)?
 
I'm assuming you have remote login enabled in the Sharing Preferences of the remote Mac? If so, you must be incorrectly entering the username and/or password. I use identical usernames and passwords on all my personal Macs to simplify things. I also use slightly simpler (IMO) versions of the commands you're trying to use:
Code:
ssh username@ip.ad.dr.ess
sudo halt
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.