If you’ve ever spaced on your Ubiquiti WiFi password, you know the panic of trying to reconnect a new device or share the network with a guest. This guide is for anyone using Ubiquiti gear—whether it’s a UniFi AP, EdgeRouter, or UniFi Gateway—who needs to recover that password without calling in a pro. By the end, you’ll have your WiFi key back using one of three methods: the UniFi Controller interface, a quick SSH command, or a factory reset as a last resort. No deep networking knowledge required.
We’ll keep things casual and step-by-step. You don’t need to be a sysadmin; just follow along. For the safest recovery method, we recommend starting with the controller, as it’s non-destructive. If that’s not an option, SSH gives you direct access, and only if both fail should you resort to a reset. Let’s dive in.
What You’ll Need
- A computer (Windows, Mac, or Linux) on the same network as your Ubiquiti device.
- The IP address or hostname of your Ubiquiti device (e.g., 192.168.1.1 or unifi).
- Admin credentials for the UniFi Controller or SSH (username/password).
- SSH client (like PuTTY on Windows, or Terminal on Mac/Linux).
- A paperclip or pin if you need to physically reset the device.
If you’ve already tried a free WiFi password recovery utility, many won’t work with Ubiquiti’s proprietary setup—stick with these official methods.
Step 1: Recover Password via UniFi Controller
If you still have access to the UniFi Controller software (either locally installed or on a cloud key), this is the easiest route. The controller stores all WiFi settings, including the pre-shared key (PSK).

1. Open your web browser and go to the controller’s IP address (e.g., https://192.168.1.10:8443). Log in with your admin credentials. If you’ve forgotten those, see the SSH method below. 2. Once logged in, click on “Settings” (the gear icon) in the lower-left corner. 3. Under “Wireless Networks”, find the SSID you want the password for. Click on it. 4. You’ll see the “Security” section with the current password displayed (hidden by asterisks). Click the eye icon to reveal it. Write it down or copy it. That’s it—you’re back in business.
For recovery from backup, if you have a backup of your controller configuration, you can restore it on another controller instance and retrieve the password. This is especially useful if your controller has been wiped.
Step 2: Recover Password via SSH
If you can’t access the controller (maybe it’s on another network or you lost the admin password but still have SSH credentials), you can pull the WiFi password directly from the device via SSH.

1. Open your SSH client. On Windows, download PuTTY; on Mac or Linux, open Terminal. 2. Connect to your Ubiquiti device: type `ssh ubnt@` (generic username is often ubnt, password is ubnt if unchanged). For EdgeMax devices, use `ssh admin@`. 3. Once logged in, enter the following command for UniFi APs: `mca-status | grep wpa`. This will show the WPA passphrase. For EdgeRouter, use `show configuration commands | grep password` or navigate to the wireless interface. 4. Copy the password that appears. If prompted, you can also run `cat /tmp/system.cfg | grep wpa` on some models. 5. Type `exit` to close the SSH session.
This method is a reliable offline recovery solution since you don’t need the internet—just local network access. If you’ve done a password recovery on an access point before, you’ll find this familiar.
Step 3: Factory Reset (Last Resort)
If you’ve lost both controller and SSH access (e.g., forgot admin passwords and no physical access to the controller), a factory reset will wipe all configurations, including the WiFi password, and reset the device to defaults. The default password is typically printed on the device label.

1. Locate the reset button on the device (usually a small pinhole). 2. With the device powered on, press and hold the button with a paperclip for about 10 seconds until the LED starts flashing rapidly. 3. Release the button. The device will reboot and restore factory settings. 4. Once rebooted, use the default SSID and password from the sticker (often ubnt/ubnt). You can then reconfigure the device by adopting it into the controller or using the default web interface. 5. If you need to recover other settings, you’ll have to reconfigure manually.
A word of caution: this will erase everything—so it’s the least preferred method. If you have a backup file, you can restore it after the reset to bring back your network settings. For more on that, check out our best WiFi password recovery software guide.
Common Pitfalls
- Wrong SSH credentials: Many Ubiquiti devices have default usernames and passwords like ubnt/ubnt, but if they were changed and you don’t remember, SSH won’t work. Try the default first, then fall back to the controller or reset.
- Forgotten controller admin password: If you can’t log into the UniFi Controller, you can’t use Step 1. In that case, SSH is your next bet—but note that the SSH password might be different from the controller admin password.
- Factory reset without backup: Once you reset, all settings are gone. If you don’t have a backup, you’ll have to set everything up from scratch. Always try to use the controller or SSH first.
Where to Next
Now that you’ve retrieved your WiFi password, consider writing it down or storing it in a password manager to avoid this hassle again. For more networking tips, check out our guide on the safest recovery method or browse other password recovery topics. If you frequently forget passwords, a dedicated free WiFi password recovery utility might be worth exploring. Happy surfing!