Home About Tools Projects Guides & Blog ⚡ Hire Me ✦ Websites Contact →
🌐 Networking

How to Factory Reset a UniFi Access Point via SSH

Got a UniFi device that's stuck in a bad adoption state, been misconfigured, or needs wiping before it gets redeployed? You can factory reset it remotely via SSH without ever touching the physical reset button, handy when the device is ceiling-mounted, in a locked comms room, or at a remote site.

The whole thing comes down to one command.

The Command

SSH, UniFi Shell
# Run this after SSHing into the device
syswrapper.sh restore-default

# The device will wipe its config and reboot into factory defaults.
# Your SSH session will disconnect, this is normal.
🚨
This is irreversible
There is no undo. The moment you run this command, the device starts wiping its configuration and reboots. Make sure you actually want to reset this device before proceeding, especially on production networks where it may be serving users.

Before You Reset

⚠️ Check First

A factory reset wipes everything. Take a moment to check these before running the command:

  • Note the device IP, after the reset it may get a new DHCP lease and be harder to find
  • Know your controller address, you'll need it to re-adopt the device afterwards
  • Check for active users, if it's an access point currently serving Wi-Fi, anyone connected will be dropped the moment it reboots
  • Confirm it's the right device, double-check the IP or MAC address before wiping

What gets wiped vs what stays

Wiped
  • Controller adoption info
  • Network / VLAN configuration
  • Custom hostname
  • SSH credentials
  • Wireless profiles
  • Static IP settings
Kept
  • Firmware version
  • Hardware MAC address
  • Serial number

Step 1, Connect via SSH

🔌 SSH Connection

You'll need the device's current IP address and SSH credentials. Use Windows Terminal, PowerShell, macOS Terminal, or PuTTY.

🖥️
Windows Terminal / PowerShell
OpenSSH is built into Windows 10 and 11. Run the ssh command from any terminal window.
🍎
macOS / Linux Terminal
SSH is built in. Open Terminal and connect directly, no additional tools needed.

SSH credentials

FieldValueNotes
Username ubnt Default, same on all devices
Password ubnt Default for unadopted devices only
ℹ️
Adopted devices use controller SSH credentials
If the device is currently adopted into a UniFi Network Application, the SSH password will be whatever was set under Settings → System → Advanced → Device SSH Authentication. The default ubnt/ubnt credentials won't work.
Terminal
# Connect, replace the IP with your device's address
ssh ubnt@192.168.1.x

# Enter password when prompted
# You'll land at a prompt like:
# BusyBox v1.x.x  /  ubnt@UniFi:~#

Step 2, Run the Reset Command

🔄 Factory Reset

Once you're in the SSH session, run the restore command:

SSH, UniFi Shell
syswrapper.sh restore-default

# The device will immediately begin wiping config.
# You'll see output similar to:
#   Performing factory default...
#   Rebooting...
# Your SSH session will disconnect, this is expected.

The SSH session will drop as the device reboots, that's completely normal. Give it 2–3 minutes to come back online.

What happens during the reset

Configuration wiped
All stored config, adoption info, network settings, credentials, is cleared from flash storage.
Device reboots
The device restarts automatically. Your SSH session disconnects at this point.
Factory defaults loaded
The device comes back up as if fresh by default, DHCP client enabled, default credentials restored.
Ready for adoption
The device will broadcast its default SSID (if it's an access point) and appear as "Pending Adoption" in the UniFi Network Application.

Step 3, Re-Adopt the Device

✅ Re-Adoption

After the reset, the device needs to be re-adopted into your controller. If it's on the same network as your UniFi Network Application, it should appear automatically under Devices → Pending Adoption, just click Adopt.

If it doesn't appear automatically, SSH back in (using the restored default ubnt/ubnt credentials) and manually point it at your controller:

SSH, UniFi Shell
# Replace CONTROLLER-IP with your Network Application's IP address
set-inform http://CONTROLLER-IP:8080/inform

# Example:
# set-inform http://192.168.1.10:8080/inform
#
# The device will reach out to the controller.
# It will then appear as Pending Adoption in the Network Application.
UniFi Cloud / Site Manager
If you're using UniFi Site Manager (unifi.ui.com) rather than a self-hosted controller, use the inform URL provided in your site's device adoption settings, it'll look like https://connect.ui.com/inform rather than a local IP.

Physical Reset, Fallback Option

🔘 Physical Reset

If you can't SSH in at all (wrong credentials, SSH disabled, device fully unresponsive), you'll need to use the physical reset button. The location and method varies by device type:

Device TypeReset Method
Access Points (UAP, U6) Hold the reset button on the underside for 10 seconds while powered on. LED will flash, then device reboots.
Switches (USW) Hold the reset button on the front/back panel for 10 seconds. Usually labelled "RESET".
Security Gateways / UDM Hold reset on the back panel for 10 seconds. UDM Pro: hold until LED turns off and back on.
Cameras (UniFi Protect) Hold reset pinhole button for 10 seconds with a paperclip or pin.
Useful SSH commands to keep handy
info, shows model, firmware version, IP, and MAC address
reboot, cleanly reboots the device
set-inform http://CONTROLLER-IP:8080/inform, re-adopts into controller
upgrade <FIRMWARE-URL>, upgrades firmware directly via SSH
J
Jack Davies
IT Engineer · M365 & Intune Specialist

Jack is an IT Technical Engineer based in the UK, working day-to-day with Microsoft 365, Intune, and Entra ID across a range of businesses. He holds the MS-900 certification and is studying for a BSc in Cyber Security through the Open University. Outside of work he builds and documents home lab projects, writes guides on this site, and takes on M365 consulting work for small businesses.

About Jack → LinkedIn →
// monthly tips

Get M365 tips in your inbox

Practical Intune and Microsoft 365 tips, once a month. No spam, no fluff.