Macworld - Reader, tech dabbler, and Weeds actor Andy Milder, occasionally contacts me for technical advice. In exchange, I drop his name. I'd additionally like to drop this bit of advice in response to his latest query:
I want to restart my Mac remotely from another Mac. Is there a way to do that?
Absolutely. If you want to do it via the Mac's GUI, move to the remote Mac, launch System Preferences, select the Sharing preference, and enable the Screen Sharing option.
When you want to shut down that Mac remotely, sit down in front of another Mac on the same network, select the remote Mac under the Shared entry in any Finder window, click the Share Screen button in that window, enter that Mac's administrator's name and password, and click Connect.
The remote Mac's screen will appear on the local Mac's desktop. Treat it like your local Mac and, within that window, choose Restart from its Apple menu. It will do as you've commanded.
If you can't or don't wish to screen share you can do this via Terminal. Just follow these steps:
1. On the remote Mac launch System Preferences and choose Sharing. Click the lock icon and enter your Admin password to unlock the preference.
2. Within that preference enable the Remote Login option. In this window you'll see the command for accessing your remote Mac--something along the lines of ssh andy@macsipaddress (where macsipaddress is, naturally, the Mac's IP address). Close System Preferences.
3. On the local Mac (which is running on the same local network as the remote Mac) launch Terminal (/Applications/Utilities) and enter ssh andy@macsipaddress (again, substituting the IP address).
4. After the inherent delay enter your password for the remote Mac.
5. Enter sudo shutdown -r now
The remote Mac will restart immediately. (And I do mean immediately--there's no option to elegantly quit applications. The remote Mac simply restarts without issuing any warnings about saving open files.)
You can delay the restart for awhile if you like. To do that, enter something like sudo shutdown -r +5. Were you to use that exact text, your remote Mac would restart in five minutes. Enter +1 and it restarts in one minute. You get the idea, after the + sign just enter the number of minutes you want to delay restart.
Have a Mac 911 question of your own that you'd like to appear in this space? Just drop me an email message at email@example.com (no personal replies guaranteed). You can additionally follow me on Twitter.
- Path Selection Infographic Path Selection Infographic
- Hyperconvergence Infographic A wide range of observers agree that data centers are now entering an era of "hyperconvergence" that will raise network traffic levels faster...
- Preparing Your Infrastructure for the Hyperconvergence Era From cloud computing and virtualization to mobility and unified communications, an array of innovative technologies is transforming today's data centers.
- How WAN Optimization Helps Enterprises Reduce Costs If you wanted to break down innovation into a tidy equation, it might go something like this: Technology + Connectivity = Productivity. Productivity...
- Cloud Knowledge Vault Learn how your organization can benefit from the scalability, flexibility, and performance that the cloud offers through the short videos and other resources...
- LIVE EVENT: 5/7, The End of Data Protection As We Know It. Introducing a Next Generation Data Protection Architecture. Traditional backup is going away, but where does this leave end-users? All Laptops White Papers | Webcasts
Our new weekly Consumerization of IT newsletter covers a wide range of trends including BYOD, smartphones, tablets, MDM, cloud, social and what it all means for IT. Subscribe now and stay up to date!