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 firstname.lastname@example.org (no personal replies guaranteed). You can additionally follow me on Twitter.
- Rethinking IT Operations in the Cloud This paper breaks down the challenges that often prevent the cloud from delivering the fast, flexible and affordable infrastructure companies seek - and...
- Gartner Magic Quadrant for Cloud-Enabled Managed Hosting, North America Cloud-enabled managed hosting brings cloudlike consumption and provisioning attributes to the traditional managed hosting market
- IDC ranks IBM #1 in market share for enterprise social software IDC ranks IBM #1 in worldwide market share for 3 consecutive years. IDC also shares its Social Software 2013 - 2017 market forecast....
- The Social Business: Unlocking the collective knowledge of people Five years ago, IBM observed the planet was becoming instrumented, interconnected and intelligent. 20,000 engagements later, here's what we know and believe about...
- NSS Labs & Cisco Present: Evaluating Leading Breach Detection Systems Today's constantly evolving advanced malware and APTs can evade point-in-time defenses to penetrate networks. Security professionals must evolve their strategy in lockstep to...
- Will the Real Endpoint Threat Detection and Response Please Stand Up? This webinar explores new technologies & process for protecting endpoints from advanced attackers as well as the innovations that are pushing the envelope... 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!