Find your Pi's IP address and SSH in from Mac — no monitor required
Generated: April 20, 2026 · Covers Raspberry Pi OS Bullseye + Bookworm
Raspberry Pi OS broadcasts itself via mDNS/Bonjour. No scanning needed.
If it replies, use raspberrypi.local as the hostname in SSH commands. That's it.
If the default name doesn't work (you may have changed it), try variants:
Or browse all SSH services on your network:
raspberrypi.local on your LAN. Your Mac has Bonjour built in, so no extra software needed.The Pi may already be in your Mac's ARP table. Check for Pi MAC address prefixes.
Look for lines matching these Raspberry Pi MAC prefixes:
| OUI Prefix | Model |
|---|---|
b8:27:eb | Pi 1, 2, 3 (original Foundation OUI) |
dc:a6:32 | Pi 4, Pi 400, CM4 |
e4:5f:01 | Pi 4 (alternate) |
28:cd:c1 | Pi 5 |
d8:3a:dd | Pi 5 (alternate) |
2c:cf:67 | Pi Zero W, Zero 2W |
e4:5f:01 | Pi 400 |
Quick filter:
? (192.168.1.47) at dc:a6:32:xx:xx:xxLog into your router — it has a complete list of every device with an IP address. This never fails.
First, find your router's IP:
Or:
Then open these URLs in your browser (try each one):
| URL | Common On |
|---|---|
http://192.168.1.1 | Most Netgear, Linksys, TP-Link |
http://192.168.0.1 | TP-Link, D-Link, older Linksys |
http://10.0.0.1 | Apple routers, Xfinity |
http://192.168.2.1 | Belkin, some Xfinity |
http://192.168.100.1 | Arris/Motorola cable modems |
http://router.local | Modern routers (mDNS) |
Once logged in, look for sections named:
Look for a device named raspberrypi or matching a Pi MAC OUI from the table above.
Install nmap, then scan your local network. This finds every live device.
Find your Mac's IP first:
Then scan your subnet. Replace the IP range with yours:
Look for entries labeled "Raspberry Pi Trading" or "Raspberry Pi Foundation" in the MAC Address field. Those are your Pi.
-sn = ping scan (no port scan, fast). sudo = uses raw packets so it sees MAC vendor info. You need sudo for MAC addresses.Also useful — scan specifically for SSH port:
arp-scan queries every IP directly with ARP packets. It's faster and shows vendor names clearly.
Find your network interface:
Run the scan:
Or scan all interfaces:
Look for lines with Raspberry Pi in the Company field.
Browse for all SSH services advertised on your network via Bonjour:
Leave it running for 30 seconds. It will list any device advertising SSH.
Or resolve a known hostname:
Once you have the IP, SSH in:
Or by hostname (if mDNS resolved earlier):
Verbose mode (if something goes wrong):
Non-standard port (if you changed SSH port on the Pi):
| OS Version | Default User | Default Password | SSH Enabled |
|---|---|---|---|
| Pi OS Bullseye (April 2022+) | pi | raspberry | Off by default |
| Pi OS Bookworm (Oct 2023+) | Set during imaging | Set during imaging | Off by default |
| Older images (pre-2022) | pi | raspberry | On by default |
pi user. You must set the username and password when imaging the SD card, or the account won't exist. Use Raspberry Pi Imager's advanced options (gear icon) to set this before flashing.ssh on the boot partition of the SD card before first boot. See Part 3 below.Generate a key on your Mac (if you don't have one):
If that returns "No such file or directory," generate one:
Copy the key to the Pi (run this on your Mac, enter password when asked):
Or if ssh-copy-id isn't available:
Now SSH in without a password:
Create a shortcut in ~/.ssh/config so you never type the IP again:
Host pi
HostName 192.168.1.47
User pi
IdentityFile ~/.ssh/id_ed25519
Port 22
Save that to ~/.ssh/config, then just type ssh pi from then on.
Once logged in via SSH, run these on the Pi:
Change the default password immediately.
Update everything to the latest version.
Show all IP addresses (WiFi + ethernet).
Check which Pi model and OS version you're running.
The Raspberry Pi Imager handles SSH enable + WiFi config + user creation all at once. No manual file editing.
Or download from raspberrypi.com/software
In the Imager:
US)wpa_supplicant.conf on boot to NetworkManager. Imager bridges this gap automatically.After flashing the OS image to the SD card, mount the boot partition on your Mac. It usually auto-mounts as /Volumes/bootfs (Bookworm) or /Volumes/boot (older).
Enable SSH by creating an empty file:
That's it. The presence of this file tells Pi OS to enable SSH on first boot.
Create a WiFi config file on the boot partition:
For hidden networks or 5GHz, add scan_ssid=1 inside the network={} block.
Add a fallback network (e.g., your phone hotspot):
wpa_supplicant.conf in the boot partition still works for initial connect but Pi OS Bookworm prefers NetworkManager. Imager is the safest bet for Bookworm.Modern Pi OS has no default pi user. Create one via the SD card:
Create the user config file on boot partition:
Format is username:password_hash — one line, no spaces.
Mount the rootfs partition and copy your public key so passwordless login works on first boot:
Then mount and copy the key:
Eject safely:
The Pi's SSH server isn't running. Re-enable it via SD card:
Then remount/eject and power cycle the Pi.
You reflashed the Pi and the old host key doesn't match anymore:
Answer yes to accept the new host key.
The Pi and your Mac are on different subnets. Check both are connected to the same router/LAN. If your Mac is on WiFi and the Pi is on ethernet, they should still be on the same subnet (same router).
Some routers block multicast traffic that mDNS needs. Use the IP directly instead:
Can't log in because you forgot the password. Reset it via the SD card:
Then create /Volumes/bootfs/userconf.txt with:
Boot the Pi with this SD card — the password is now newpassword.
Set a static IP reservation on your router (router admin panel, DHCP settings) — tie the Pi's MAC address to a fixed IP. Or set a static IP on the Pi itself:
Add at the bottom:
interface eth0
static ip_address=192.168.1.100/24
static routers=192.168.1.1
static domain_name_servers=8.8.8.8
interface wlan0
static ip_address=192.168.1.101/24
static routers=192.168.1.1
static domain_name_servers=8.8.8.8
Pick an IP outside your router's DHCP range. Then update your ~/.ssh/config with the new IP.
ping raspberrypi.local — if this works, skip to step 3.ifconfig en0 | grep "inet " — gives e.g. 192.168.1.105. Then scan: sudo nmap -sn 192.168.1.0/24. Look for Raspberry Pi in the output.ssh pi@192.168.1.47 (or ssh pi@raspberrypi.local). Enter your password.passwdssh-copy-id pi@192.168.1.47sudo apt update && sudo apt full-upgrade -yhostname -I — shows both WiFi and ethernet IPspi/raspberry. SSH is disabled. WiFi config via boot partition is deprecated. Use Raspberry Pi Imager with the gear icon (Advanced options) to set username, password, SSH, and WiFi all at once before flashing. This is the path of least resistance and the only fully supported method for Bookworm.