Restarting a remote Mac
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 mac911@macworld.com (no personal replies guaranteed). You can additionally follow me on Twitter.
- The 20 Best iPhone/iPad Games of 2013 So Far
- 9 Steps to Build Your Personal Brand (and Your Career)
- 7 Consumer Technologies Coming to an Enterprise Near You
- 11 Signs Your IT Project is Doomed
- A walking tour: 33 questions to ask about your company's security
- 15 social media scams
- The 7 elements of a successful security awareness program
- IT Certification Study Tips
- Register for this Computerworld Insider Study Tip guide and gain access to hundreds of premium content articles, cheat sheets, product reviews and more.
- Harness IT -- An Introduction to Business Intelligence Solutions Learn the key selection criteria required to provide your organization with the capability to address structured data, unstructured data and mobile demands so...
- Business Intelligence Shows its Smarts Today's Business Intelligence (BI) tools provide a new way to think about data with self-service capabilities and user-friendly analytics that can be used...
- Proactive Planning for Big Data Big data is less about the terabytes and more about the query tools and business intelligence needed to make sense of massive amounts...
- Inquiry Spotlight: Consumer-Facing Identity The challenges of consumer-facing identity management, access management, and authentication differ in ways subtle and dramatic from those of the employee-facing variety.
- Becoming An Analytics Driven Organization Join us on Tuesday, June 18, 2013, 11:00 AM EDT and learn how your agency can create an analytics culture that will enable...
- 3 Reasons Why Sepaton is the World's Fastest Backup Solution Leading analyst, Storage Switzerland learns how Sepaton backs up and deduplicates massive data volumes while maintaining the industry's fastest performance - all in... All Laptops White Papers | Webcasts
Our weekly newsletter will cover a wide range of topics and trends related to consumerization. Stay up to date with news, reviews and in-depth coverage of BYOD, smartphones, tablets, MDM, cloud, social and how consumerization affects IT. Subscribe now!