Yes, you can remotely put a Mac to sleep, and you can also wake it, lock it, restart it, and shut it down from another device. The exact method depends on your macOS version, network setup, and whether you need to do it while away from home or just on your local Wi‑Fi. This guide covers the built‑in tools, the free third‑party options, and the common pitfalls that stop remote sleep commands from working.
Why Remote Sleep Is Useful
Putting a Mac to sleep remotely is handy in several everyday situations:
- Leaving the office in a hurry – you forgot to put the iMac to sleep, and you don’t want the screen on all night.
- Working from another room – you’re on the couch with an iPad and want to sleep the Mac in the study without walking back.
- Managing multiple Macs – you have a home server or a media Mac that should sleep when not in use to save power.
- Security – you want to lock the screen remotely if you stepped away and forgot to lock it.
Remote sleep is also a stepping stone to full remote management: once you can send a sleep command, you can usually also send wake, restart, and shutdown commands using the same tools.
What “Sleep� Means on a Mac
Before you start sending commands, it helps to know what sleep actually does. When a Mac sleeps, it:
- Puts the CPU into a low‑power state.
- Turns off the display.
- Stops most background activity, though some tasks like Time Machine backups can wake it briefly.
- Keeps RAM powered so your open apps and documents are exactly where you left them.
There are two sleep modes on modern Macs:
- Sleep (S3) – the standard mode; RAM stays powered, everything else sleeps.
- Power Nap – a feature on some Macs that lets them check email and updates while sleeping. If you want a true sleep, you may need to disable Power Nap in System Settings > Battery.
Remote sleep commands work with both modes, but if the Mac is in Power Nap, it may wake briefly on its own – that’s normal.
Method 1: Using SSH (Built‑In, No Extra Apps)
The most reliable way to remotely sleep a Mac is via SSH (Secure Shell). This works over your local network and, with a bit of setup, over the internet. Here’s how to set it up:
- On the Mac you want to control, go to System Settings > General > Sharing and turn on Remote Login (SSH).
- Note the Mac’s IP address or hostname – you can find it in System Settings > Wi‑Fi > Details, or by typing
ipconfig getifaddr en0in Terminal. - From another Mac, open Terminal and type:
ssh username@ipaddress(replace username and ipaddress with the Mac’s login name and IP). - Once logged in, run one of these commands:
pmset sleepnow– puts the Mac to sleep immediately.shutdown -s now– also puts it to sleep (the -s flag means sleep, not shutdown).caffeinate -u -t 5– wakes the display for 5 seconds, then lets it sleep again (useful if you want to see the screen briefly).
If you’re on a Windows PC, you can use PuTTY or the built‑in OpenSSH client to connect the same way.
Sleeping from a Phone or Tablet
You can also SSH from an iPhone or iPad using apps like Termius or Blink. The command is the same: pmset sleepnow. This is handy when you’re in another room and don’t want to get up.
Method 2: Using Apple Remote Desktop (ARD)
Apple Remote Desktop is Apple’s own remote management tool. It’s not free – it costs about $80 on the Mac App Store – but it’s the most full‑featured option for managing multiple Macs. With ARD you can:
- Sleep, restart, or shut down multiple Macs at once.
- Lock the screen.
- Observe or control the screen in real time.
- Copy files and run Unix commands.
To use ARD, you need to enable Remote Management on the target Mac (System Settings > General > Sharing > Remote Management). Then, from the admin Mac, open ARD, select the Mac, and choose Sleep from the Manage menu. ARD is overkill if you just want to sleep one Mac occasionally, but it’s the right tool for IT admins or households with several Macs.
Method 3: Wake on Demand (WoL) and Wake on LAN
Sleeping is one thing, but what if you want to wake a Mac remotely? macOS supports Wake on Demand (a modern version of Wake on LAN) that lets you wake a sleeping Mac over the network, even from the internet, as long as:
- The Mac is connected to power (not on battery).
- It’s connected to Wi‑Fi or Ethernet.
- Wake on Demand is enabled in System Settings > Battery > Options (on laptops) or System Settings > Energy (on desktops).
- You’re signed into iCloud on the same Apple ID (for Wake on Demand over the internet).
To wake a Mac from another device:
- Use the Back to My Mac feature (deprecated in newer macOS) or a third‑party app like Wake Me Up or Mocha WOL that sends a magic packet.
- For a simple local wake, you can use the
wakeonlancommand on another Mac or a Raspberry Pi.
Note: Wake on Demand requires the Mac to be in sleep mode, not fully shut down. If the Mac is off, you’ll need to physically press the power button or use a smart plug.
Method 4: Third‑Party Apps (Free and Paid)
If you don’t want to use SSH or ARD, several apps offer a graphical interface for remote sleep and wake:
- TeamViewer (free for personal use) – lets you control the Mac remotely and put it to sleep from the remote control window.
- AnyDesk – similar to TeamViewer, with a sleep option in the remote session.
- Chrome Remote Desktop – free, but it doesn’t have a dedicated sleep button; you’d need to use the Apple menu in the remote session.
- Remote Mouse – a phone app that turns your phone into a trackpad and keyboard, and includes a sleep button.
- Apple’s own “Back to My Mac� – was the built‑in solution, but Apple removed it in macOS Catalina (10.15).
Most of these apps work by creating a virtual display session, and the sleep command is sent through the app’s interface. They’re easier to set up than SSH but require the app to be running on the Mac and logged in.
Method 5: Using iCloud “Find My� (For Lock Only)
If you just want to lock your Mac remotely (not sleep it), you can use iCloud’s Find My feature:
- Go to icloud.com/find from any browser.
- Sign in with the Apple ID that’s on the Mac.
- Select the Mac from the device list.
- Click Lock – this locks the screen with a passcode.
This is a security feature, not a sleep tool, but it’s useful if you forgot to lock your Mac and want to do it remotely. It works even if the Mac is asleep? Actually, it will wake the Mac briefly to lock it, then it may go back to sleep.
Common Problems and Fixes
Remote sleep commands often fail because of a few simple issues. Here’s what to check:
- SSH not enabled – make sure Remote Login is on in System Settings > General > Sharing.
- Firewall blocking SSH – if the Mac’s firewall is on, allow SSH (port 22) in System Settings > Network > Firewall > Options.
- Wrong IP address – if you’re on a different network, you need the Mac’s public IP and port forwarding. That’s more advanced; for most people, local network is enough.
- Power Nap interfering – if the Mac wakes up right after you sleep it, disable Power Nap.
- Battery settings – on a laptop, if it’s on battery, it may not sleep when you send the command if the energy settings say “prevent automatic sleeping on battery.�
- App not running – third‑party apps need to be running and logged in on the Mac. If the Mac is asleep, they can’t receive the command – you need Wake on Demand enabled first.
Frequently Asked Questions
Can I put my Mac to sleep remotely from my iPhone?
Yes. The easiest way is to use an SSH client app like Termius or Blink, connect to your Mac (with Remote Login enabled), and type pmset sleepnow. You can also use a remote desktop app like TeamViewer, which has a sleep button in its toolbar.
Does remote sleep work over the internet, not just Wi‑Fi?
It can, but it requires more setup. For SSH, you’d need to forward port 22 on your router to the Mac’s local IP, and know your public IP (which may change). For Wake on Demand, you need iCloud and the Mac must be on power. For third‑party apps like TeamViewer, they handle the internet connection for you – that’s the easiest way to sleep a Mac from anywhere.
Why does my Mac wake up right after I put it to sleep remotely?
Common causes: Power Nap is enabled (check System Settings > Battery > Options), a USB device is waking it (like a mouse), or a network activity is waking it (check System Settings > Battery > Options > “Wake for network access�). You can also check the log with pmset -g log | grep -i "wake" to see what woke it.
Is there a keyboard shortcut to sleep a Mac locally?
Yes. Press Control+Command+Q to lock the screen, or Option+Command+Power (on Macs with a power button) to put it to sleep. On newer Macs with Touch ID, press and hold the Touch ID button until you see the sleep dialog.
Can I schedule a Mac to sleep at a certain time remotely?
Yes, you can set a schedule on the Mac itself (System Settings > Energy > Schedule) to sleep at a specific time. But that’s local, not remote. To schedule a remote sleep, you could use a cron job via SSH, but that’s more complex. For most people, the built‑in schedule is enough.
Does remote sleep work if the Mac is closed (lid closed on a laptop)?
If the lid is closed, the Mac is already asleep (unless you have an external display and a keyboard/mouse connected). So you can’t “put it to sleep� because it’s already sleeping. But you can wake it remotely if Wake on Demand is enabled, then sleep it again.
Security Considerations
When you enable SSH or remote management, you’re opening a door into your Mac. Follow these basic rules:
- Use a strong password or, better, set up SSH keys instead of passwords.
- Only enable Remote Login when you need it, and turn it off when you don’t.
- If you open port 22 to the internet, use a non‑standard port and consider a VPN (like Tailscale or WireGuard) instead of exposing SSH directly.
- Never share your Apple ID password with anyone, as it can be used to lock your Mac via Find My.
Alternatives to Remote Sleep
If remote sleep seems like too much hassle, consider these simpler options:
- Set a schedule – the Mac can sleep itself at the same time every day.
- Use a smart plug – cut power to a desktop Mac (but this is not a clean sleep; it’s like pulling the plug, so only do this if you don’t mind a hard shutdown).
- Use the “Lock Screen� menu extra – put a lock button in the menu bar so you can lock manually before you walk away.
- Use Apple Remote Desktop for multiple Macs – if you manage several Macs, ARD is worth the price.
In the end, the best method depends on your comfort with the command line and whether you need to do it from outside your home network. SSH is the most reliable and free, while third‑party apps are the most user‑friendly.
Related
Formula used
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- 3 OS Updates Meaning: Sony’s 3-Year Promise
- Robot Training Data: 8 Questions to Ask
- Compare Refrigerator Energy Use & Running Costs
- Apple Watch Remote iTunes: Quick Guide
- Best Alternatives to Optical Drives
- Beats Solo 4 50 Hour Battery But No Noise?2.00 %/h