Free tools Windows power users keep installed
One-click scans. No signup required.
Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.
Yes—you can remotely shut down or restart a Mac or Linux PC from an Android phone by connecting over SSH and issuing a power command. The computer must be switched on, connected to a network your phone can reach, running an SSH service, and configured so your account is allowed to perform the operation.
On macOS, enable Remote Login in System Settings > General > Sharing. On Linux, enable the distribution’s SSH server. Then use an Android SSH client, verify the computer’s host key, sign in, and run the appropriate shutdown or restart command. SSH cannot contact a computer that is already fully powered off; waking it requires a separate Wake-on-LAN setup.
As an Amazon Associate I earn from qualifying purchases.
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Repair Windows errors before they cause bigger problemsFix Now →Scan for outdated or missing drivers - takes under a minuteDriver Scan →What do you need before starting?
You need four things: an Android phone with an SSH client, a Mac or Linux computer that is powered on, network connectivity between the phone and computer, and an account authorized to run the power command. The phone does not need a special cable or a companion program on the computer beyond the operating system’s SSH service.
- Android SSH client: A general terminal-style SSH app gives you full command access. A focused utility such as Duorem can present power controls and status for a Linux host.
- Computer address: You need the target’s local IP address or a hostname that resolves from the phone’s network. Apple documents the form
ssh username@hostname. - Credentials: Use an account that can log in through SSH and, where required, use
sudofor shutdown or restart. - Reachability: SSH works only while the computer is online and reachable. For access away from home, join the home network through a VPN where possible rather than exposing SSH directly to the internet.
Before relying on unattended power control, try the connection while you are physically near the computer. Confirm that the account, command, and privilege policy behave as expected, and that you know how to recover if the machine does not come back online.
Popular on Amazon
- 【Strong Adsorption】The inspiration of the silicone phone suction case comes from the adhesive force of the octopus. Each suction cup phone mount is 3.15 inches long and 2.17 inches wide, with 24 independent suction cups providing a stronger and more stable suction force, so you don't have to worry about your phone falling during use.
- 【Back of Phone Suction Grip】Remove the adhesive film on the phone suction cup and stick it on the phone case. You can then fix the phone on any smooth surface, which is very convenient. (The phone suction cup cannot be removed and reused after being attached to the phone case. It is recommended to attach it to a regular phone case, not a valuable one.)
- 【Widely Used】Our non-slip silicone phone sticky grip mount attaches to almost any flat phone case and make it compatible with common mobile phones such as iPhone and Android.You can shoot, watch videos or video calls in the kitchen, gym, dance studio, bathroom and other places.
- 【Capture the Wonderful Picture】Whether you are a TikTok creator or just like to share videos and photos, this phone suction cup can help you hands-free capture wonderful videos and photos for sharing with friends.
- 【Note】You can fix the phone suction cup on a smooth surface such as a mirror or glass. If necessary, wipe the suction cup with a damp cloth to obtain stronger suction. Before releasing your hand, make sure the phone is firmly fixed. (Not applicable to rough walls, wooden surfaces, and other uneven surfaces)
How do I enable SSH on a Mac?
macOS calls its SSH server Remote Login. Apple’s current instructions are to open Apple menu > System Settings > General > Sharing, turn on Remote Login, and choose which users may connect. Apple warns that enabling this service can reduce security, so do not leave access open to every account unless that is genuinely necessary.
- Open System Settings.
- Select General, then Sharing.
- Turn on Remote Login.
- Use the access control beside the setting to allow only the accounts that need remote access.
- Note the Mac’s hostname or IP address and the permitted username. Apple shows the connection pattern as
ssh username@hostname.
Apple’s Remote Login guide explains that the feature permits SSH or SFTP access. If your Mac is managed by an organization, a profile or firewall may impose additional restrictions; in that case, use the organization’s documented account and network policy.
How do I enable SSH on Linux?
Linux distributions package and name the SSH service differently, but the requirement is the same: an SSH server must be installed, enabled, and listening on the network interface you intend to use. The KDE Linux remote-login guide demonstrates enabling the service with systemctl enable --now sshd and checking it with systemctl status sshd.
- Install the distribution’s OpenSSH server package if it is not already present.
- Enable and start the service. On systems that use the
sshdunit, the example issudo systemctl enable --now sshd. Some distributions use a unit namedsshinstead, so follow that distribution’s documentation. - Confirm the service is running with
systemctl status sshd(or the distribution-specific service name). - Identify the computer’s IP address and the username that will connect. KDE’s example uses the target IP address and then prompts for the user’s password.
- Check the host firewall and allow SSH only on the networks from which you actually need access.
Do not assume that installing an SSH client on Android automatically enables SSH on Linux. The server side must be configured separately, and a desktop login account may still lack permission to run power-management commands.
How do I connect from Android?
Install an SSH client from a source you trust, create a host entry for the Mac or Linux PC, and connect using its username and address. The first connection normally presents the server’s SSH host-key fingerprint. Verify that fingerprint through a trusted channel before accepting it; a warning about a changed key should never be dismissed blindly.
Also popular on Amazon
- SUPERIOR COMFORT — Unlike traditional circular ear buds, the design of EarPods is defined by the geometry of the ear. Which makes them more comfortable for more people than any other ear bud–style headphones.
- HIGH-QUALITY AUDIO — The speakers inside EarPods have been engineered to maximize sound output and minimize sound loss, which means you get high-quality audio.
- BUILT-IN REMOTE — EarPods with USB-C plug also include a built-in remote that lets you adjust the volume, control the playback of music and video, and answer or end calls with a pinch of the cord.
- COMPATIBILITY — Works with all devices that have a USB-C port.
- INTEGRATED MICROPHONE — A built-in microphone precisely captures your voice while you’re on the phone, taking a FaceTime call, or summoning Siri — so you’re always heard loud and clear.
- Open the Android SSH client and choose to add a host.
- Enter the computer’s IP address or hostname, SSH port, and permitted username. Leave the standard port unchanged unless you deliberately configured another one.
- Connect and inspect the displayed host-key fingerprint. Compare it with a fingerprint obtained locally or from a trusted administrator, then accept it only if it matches.
- Authenticate with the account password or another method supported by the client and server.
- After login, run a harmless command such as
whoamiorhostnameto confirm that you reached the intended computer before sending a power command.
A general SSH terminal is the most flexible approach: it lets you use the operating system’s own commands and inspect errors. A dedicated power-control app can be quicker for a single host, but its feature set and security behavior depend on the installed version.
Which command shuts down or restarts the computer?
Use the command appropriate to the target operating system and the privileges assigned to the SSH account. The following commands are the examples documented in the supplied project and vendor material; test them interactively before using them unattended.
| Target | Action | Command | Permission note |
|---|---|---|---|
| Linux | Shut down | sudo shutdown -h now |
The account must be allowed to use sudo for the operation. |
| Linux | Restart | sudo shutdown -r now |
The account must be allowed to use sudo. |
| Linux | Restart alternative | sudo reboot |
Availability and policy depend on the distribution’s configuration. |
| macOS | Shut down | sudo shutdown -h now |
Apple’s historical Mac OS X Server command-line guide documents remote use; verify behavior and authorization on your macOS release. |
| macOS | Restart | sudo shutdown -r now |
Verify the command and privilege configuration on the target before depending on it. |
The Duorem project documentation uses the Linux shutdown and restart forms above for its power buttons. Its default actions therefore require an SSH account that can run the configured command with the required privilege. A command can be accepted by the shell even though the final state is not yet visible to the phone; wait for the SSH session to close and interpret the result cautiously.
For macOS command history and syntax, Apple’s Mac OS X Server command-line administration guide documents remote shutdown -h now and shutdown -r now. That document covers an older server release, so use it as command-line background rather than as a promise that every modern Mac has identical policy settings. The current setup prerequisite is Apple’s Remote Login feature.
Should I use a terminal SSH client or a power-control app?
Choose a terminal client when you need arbitrary commands, multiple hosts, scripting, or detailed error output. Choose a focused app when you want saved host details and one-tap power controls for a small number of machines.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minutePC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Also popular on Amazon
- Secure Hold: Our PopSockets adhesive phone grip gives your cell phone a secure, comfortable hold in hand to help prevent drops while texting, taking photos, or scrolling on the go. Designed to stick firmly to most phone cases and devices.
- Hands-Free Made Easy: Easily turn your PopSocket into a phone stand to prop up your phone anywhere, perfect for watching videos, video calls, or following recipes. A must-have phone holder that keeps your device secure and ready for anything.
- Compatibility: Works with all phones, tablets, and Kindles. Sticks best to smooth, hard plastic cases and may not adhere to silicone or textured cases. Easily swap your PopTop to change up your style.
- Black PopSockets: Simple, refined, and endlessly versatile. A timeless essential for any phone.
- Travel Must-Have for People On the Go: A must-have travel accessory for flights, flying, airports, air travel, airplanes, planes, international trips, cruises, and long travel days. Key gadget for your airport haul, travel accessories and must-haves.
| Consideration | General SSH client | Focused power-control app |
|---|---|---|
| Setup effort | Requires creating a host entry and typing commands. | Can expose shutdown, restart, and status controls after host setup. |
| Command flexibility | Full shell access, subject to account permissions. | Limited to the commands and controls implemented by the app. |
| Host-key verification | Usually exposed during the first connection; verify before accepting. | Use the app’s confirmation flow and do not bypass fingerprint warnings. |
| SSH keys | Many clients support key authentication, depending on the app. | The current Duorem project says SSH-key authentication is not supported. |
| Credential storage | Varies by client and Android version. | The F-Droid listing and project documentation describe different credential-storage states; check the version you install and its current documentation. |
| Wake-on-LAN | Usually requires a separate tool or app. | Duorem documents Wake-on-LAN support, but a sent packet does not prove that the PC woke. |
Neither approach removes the need for a correctly configured SSH server, a reachable network path, and least-privilege authorization. An app is a convenience layer over those prerequisites, not a replacement for them.
Can I do this when I am away from home?
Yes, but the Android phone must have a secure route into the network where the computer resides. A VPN that places the phone on the home or office network is the preferred pattern. Once connected, use the computer’s internal hostname or IP address just as you would locally.
Router port forwarding can expose SSH to the public internet, but it creates additional attack surface and requires deliberate firewall, authentication, patching, and monitoring choices. It should not be treated as the default solution. If remote access is essential, use strong authentication, restrict source networks where practical, and keep the SSH server and operating system updated.
Cellular data is sufficient if the VPN or other approved network path is working. Without that route, an address that works on home Wi-Fi will normally be unreachable from outside the local network.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Can Android turn on a computer that is shut down?
Not through SSH. SSH requires the target to be powered on far enough to run its network service. Turning on or waking a machine is a separate Wake-on-LAN task that depends on motherboard, operating-system, network-adapter, and router support.
Also popular on Amazon
- [360 ° Flexible Rotation Design] Comes with a rotatable lanyard ring that supports 360 ° free rotation, effectively solving the problem of twisted and tangled lanyards
- [Wide compatibility] The ultra-thin 0.02-inch design does not block the charging port at all, and both wired and wireless charging can be used directly without removing the pad. Compatible with most smartphones such as iPhone, compatible with various wristbands, lanyards, crossbody straps, and keychains
- [Durable and Portable Material] Premium rust-resistant stainless steel material with good flexibility, which not only avoids scratching the phone case, but also has excellent anti rust and anti fading performance
- [Multi scenario Practical] Paired with a lanyard or wristband, hands-free use can be achieved. The phone is within reach and not easily dropped, ideal for daily commuting and outdoor activities. Suitable for full coverage phone cases, does not support half coverage phone cases
- [Quality Service] If you find any damage or other issues with the product upon receipt, please contact us immediately. We will handle it quickly
Wake-on-LAN generally works most reliably over Ethernet. The Duorem documentation says its feature requires setup on both the remote computer and the network, and cautions that sending the datagram does not confirm that the computer actually woke. Macs also vary in their wake capabilities according to model and network configuration. Configure and verify Wake-on-LAN locally before treating it as a dependable remote-start mechanism.
What security precautions matter most?
Remote power control gives a network login the ability to interrupt a computer, so secure the connection before optimizing convenience.
- Restrict Mac accounts: In Remote Login settings, allow only the users who need access. Apple explicitly warns that enabling Remote Login can make a Mac less secure.
- Verify host keys: Confirm the SSH fingerprint through a trusted channel. A changed fingerprint may indicate reinstallation or a reused address, but it can also indicate a man-in-the-middle attack.
- Use least privilege: Grant the Linux or Mac account only the rights needed for the configured shutdown or restart command. Avoid giving a general remote account unrestricted administrator access.
- Protect stored credentials: Review how the Android client stores passwords or keys. The F-Droid listing for Duorem contains a warning about unencrypted saved credentials, while newer project documentation describes Android Keystore encryption and a migration from older plaintext settings. Treat these as version-dependent statements and inspect the documentation for your installed release.
- Prefer a VPN off-site: Do not make direct internet exposure of SSH your starting point.
- Keep a local recovery path: Know how to power on the computer, inspect its network address, or disable Remote Login if the phone connection fails.
What should I do if it does not work?
Work from the lowest layer upward: power, network, SSH service, authentication, then authorization.
- Check power and network: Confirm that the computer is awake, connected, and still using the address saved in Android. DHCP can change a local IP address unless you reserve or otherwise manage it.
- Check the SSH service: On Linux, inspect the distribution’s service status and logs. On macOS, return to System Settings > General > Sharing and confirm Remote Login remains enabled.
- Check the account: Make sure the username is spelled correctly and is included in the Mac’s allowed-user list where applicable.
- Check authorization: If the command fails with a permission error, the account lacks the required
sudopolicy or the client cannot provide the requested authentication. Fix the policy deliberately rather than disabling authentication globally. - Handle host-key warnings safely: Stop when a client reports that the host key changed. Verify the machine identity first; remove an old key only after you have established that the change is legitimate.
- Interpret disconnects carefully: A phone disconnecting without an SSH exit status leaves the final machine state unknown. Wait, check the computer through another channel, and avoid sending repeated shutdown commands that could interrupt a restart or another user’s work.
Is remote shutdown safe for unsaved work?
A system shutdown command is not a substitute for saving documents or stopping applications cleanly. Before issuing it, close interactive work or use an application-specific remote workflow that saves data; otherwise a user session may lose unsaved changes or a service may need recovery after boot.
For shared Linux systems and Macs, announce or schedule maintenance through the normal administrative process. The SSH command controls the operating system’s power transition, not the correctness of every application’s shutdown behavior.
Also popular on Amazon
- 【PKYAA Double Sided Silicone Suction Phone Case Mount】PKYAA With Double Sided 40 Strong and Reliable individual suction cups, PKYAA provides a thicken and upgraded universal silicon suction mount for your phone.
- 【Friendly to Content Creators】If you are a content creator or an online influencer, you can create videos anywhere with this suction mount completely hands free with this silicone cell phone mount for cases.
- 【HANDS-FREE & Adhere to Mirrors】This Double Sided silicone suction phone case mount allows you to stick your phone to the mirror easily. No longer holding your phone in one hand to watch video tutorials while making up.
- 【Strong Grip on the Smooth Surface】You can easily hang your phone anywhere with a smooth surface. All you do is you clean off your phone and smooth surface. It is STURDY and it not only sticks to mirrors, it also sticks to windows, it sticks to refrigerators, tiles and other clean, flat surfaces.
- 【Press Down Firmly Every 30 Minutes】Use your palm or fingers to press the phone down firmly and check it's secure before letting go. Apply even pressure for a few seconds to allow the suction cup to adhere properly. To maintain the grip and prevent accidental falls, it's a good practice to periodically reapply pressure to the suction cup.
What is the practical bottom line?
For a powered-on, reachable Mac or Linux PC, SSH from Android is the simplest general solution: enable Remote Login on macOS or an SSH server on Linux, connect with a verified host key, and run a properly authorized shutdown or restart command. Use a focused app only if its convenience features match your security and status requirements. For off-site access, prefer a VPN; for powering on an offline machine, configure Wake-on-LAN separately and treat its result as unconfirmed until the computer is reachable again.
Frequently Asked Questions
Can I do this without installing an app on the Mac or Linux computer?
Usually yes. The computer needs its built-in or distribution-provided SSH server enabled, while the Android phone supplies the SSH client. You only need additional computer software if your chosen workflow requires a separate Wake-on-LAN agent or management service.
Recommended Free Tools
Why does SSH connect but the shutdown command fail?
Login permission and power-command permission are separate. Your account may be allowed to open an SSH session but not to run the command through sudo; an administrator must grant narrowly scoped authorization or you must use an account that already has it.
Can I use mobile data instead of Wi-Fi?
Yes, provided the phone has a secure route to the computer’s network, such as an approved VPN. Without that route, the computer’s private IP address is normally not reachable from a cellular network.
What does a changed SSH host-key warning mean?
It means the key presented by that address differs from the one previously saved. The cause could be a legitimate reinstall or address reassignment, but it could also indicate interception, so verify the computer’s fingerprint before accepting a replacement key.
How can I tell whether a remote restart actually finished?
An SSH session closing is not conclusive proof of the final state. Confirm the computer becomes reachable again, for example by establishing a new SSH connection or checking it through another trusted monitoring path.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.

