Yes, you can SSH into your Mac from your iPhone. On your home network it takes about five minutes to set up. Away from home is where it gets complicated, and that's worth knowing before you start.
Step 1: Turn on Remote Login
On your Mac, go to System Settings, then General, then Sharing, and switch on Remote Login. That starts an SSH server on the Mac.
Step 2: Find your Mac's address
In System Settings under Wi-Fi, click Details next to your network and note the IP address. It'll look something like 192.168.1.42.
Step 3: Connect from the phone
Install an SSH client on your iPhone. Termius and Blink are both good. Add a new host with your Mac's IP, your Mac username, and your password:
ssh yourname@192.168.1.42As long as the phone and the Mac are on the same Wi-Fi, you're in. Full shell, all your tools.
The catch: leaving the house
The moment you're on cellular or another network, that local IP means nothing and your router blocks the connection. To make SSH work from anywhere you need one of these:
- Port forwarding, which exposes your Mac's SSH port to the whole internet. Bots will start hammering it within hours. Not recommended unless you harden it properly.
- A VPN like Tailscale, which works well but adds another system to install and maintain on every device.
- A static IP or dynamic DNS, plus router config, plus keys. It adds up.
None of this is impossible. It's just a weekend project for what should be a simple thing.
The shortcut
We built Macky because we kept doing that weekend project ourselves. It gives you a terminal on your Mac from your iPhone without any of the networking: no port forwarding, no VPN, no SSH config. It connects over WebRTC, which gets through routers and firewalls on its own, and everything is end-to-end encrypted.
Install the Mac app, install the iPhone app, sign in, connect. Works from your couch or from another country. And since your Mac probably already has SSH keys for your servers, you can still SSH onward from the Macky terminal to anything else you manage.
If you're curious how WebRTC compares to SSH under the hood, we wrote that up in WebRTC vs SSH for remote terminal access.
Try Macky
Connect to your Mac terminal from your iPhone. Free to start, no configuration required.