Address
88 Harbour St, Toronto, ON M5J 0C3, Canada.
Mon – Fri: 9AM–5PM ET
24/7/365 help desk and monitoring for covered clients.
Back

Finding SSH Settings in UniFi 9.2+: Username and Password Guide

Quick answer: in current versions of UniFi Network, open UniFi Devices, select Device Updates and Settings, expand Device SSH Settings and look under Device SSH Authentication. That is where your UniFi SSH username and password are shown and changed. This guide covers the exact steps, the default logins, the SSH command and what to try when access is refused.

Where to find the UniFi SSH username and password

  1. Sign in to your UniFi Network application with an account that has admin rights for the site.
  2. Open UniFi Devices in the left-hand navigation.
  3. Select Device Updates and Settings. The position of this icon differs between versions, so check the lower left and upper right of the Devices screen.
  4. Expand Device SSH Settings.
  5. Under Device SSH Authentication, view the username, reveal or set the password, and save your changes.

One set of credentials applies to the adopted network devices in that site, such as access points and switches. If you manage several sites, check each one separately.

UniFi SSH settings location by version

UniFi Network version Where to look
Older releases (before 9.2.87) Settings > System > Advanced > Device Authentication
9.2.87 and later UniFi Devices > Device Updates and Settings > Device SSH Settings

Menus move between releases. If neither location matches your screen, use the search box in Settings and search for SSH.

Default UniFi SSH username and password

Default logins work only on devices that have not been adopted or that have been reset to factory settings. After adoption, UniFi replaces them with the credentials shown in your Device SSH Settings.

Device type Default username / password Older hardware or firmware
Access points and switches ui / ui ubnt / ubnt
UniFi gateways root / ui root / ubnt
UniFi consoles root / ui root / ubnt

Change default credentials as soon as a device is set up. Never leave a factory login in place on a business network.

Device SSH and console SSH are separate

UniFi consoles, such as a Dream Machine or Cloud Key, have their own SSH setting in UniFi OS. It is switched off by default and is not controlled by the device credentials above. In current releases you will usually find it under the console settings (Control Plane, then Console). The username for consoles and gateways is root.

How to connect to a UniFi device with SSH

  1. Connect your computer to the same local network as the device.
  2. Find the device IP address in the UniFi Devices list.
  3. Open Terminal, PowerShell or an SSH client and run:
ssh username@device-ip-address

For example, to reach a console or gateway you would use ssh [email protected], replacing the address with your own.

Ubiquiti suggests using SSH mainly for advanced troubleshooting. For routine checks, the debug console built into UniFi Network is often enough.

When you need SSH access

  • Pointing a device to your controller during manual adoption, for example set-inform http://controller-ip:8080/inform
  • Diagnosing why a device shows as offline
  • Reading logs or checking network settings on the device itself
  • Recovering a device when support asks you to run a command

UniFi SSH password not working: what to check

  • Wrong credential set. Adopted devices use the site’s device SSH credentials, not your UI account password.
  • Wrong site. Confirm you copied the credentials from the site that adopted the device.
  • Offline device. A device that was offline when you changed the password may still use the previous one.
  • Previously managed elsewhere. Equipment moved from another controller can keep that controller’s login.
  • SSH disabled. Check the device SSH setting, or the separate console setting for consoles.
  • Changed host key. After a reset, your computer may warn that the key changed. Confirm the device is the one you expect before removing the old entry.

If none of the credentials work and you have physical access, a factory reset returns the device to its default login. A reset erases its configuration, so plan the re-adoption before you press the button.

SSH security best practices for UniFi

  • Use a long, unique password or SSH keys.
  • Turn SSH off where you do not need it.
  • Limit management access to a trusted network or VLAN.
  • Never expose SSH on your gateway to the internet.
  • Store credentials in a business password manager and update them when staff or providers change. Our IT onboarding and offboarding checklist covers this step.

UniFi SSH credentials: which login do you need?

Most failed connections happen because there is more than one UniFi login and they look alike. Before you type anything, work out which of these you are dealing with.

What you are connecting to Username Where the password comes from
Adopted access point or switch Shown in Device SSH Authentication The site’s device SSH password in UniFi Network
UniFi console, such as a Dream Machine or Cloud Key root The console SSH setting in UniFi OS
Factory-default access point or switch ui (ubnt on older devices) The factory default
Web or app sign-in Your UI account or local admin Used for the dashboard, not for device SSH

How to change the UniFi device SSH password

Changing the password is sensible when you take over a network, when a technician leaves or when the old password has been shared by email or chat.

  1. Open the Device SSH Settings screen described above.
  2. Under Device SSH Authentication, enter a new username if required and a long, unique password.
  3. Save the change.
  4. Check that your devices show as online, so they can receive the new settings.
  5. Test one access point or switch with the new login.
  6. Record the new credentials in your password manager, with the site name and date.

Do the change during a quiet period if you rely on scripts or monitoring tools that sign in over SSH, and update those tools at the same time.

How to enable SSH on a UniFi console

SSH is switched off on UniFi consoles until you turn it on.

  1. Sign in to the console with an owner or administrator account.
  2. Go to Settings, then Control Plane, then Console.
  3. Select the SSH checkbox and set a strong password when asked.
  4. From a computer on the same local network, run ssh root@console-ip-address.
  5. When you have finished, turn SSH off again unless you have a clear ongoing need.

Use the Debug Console when you cannot SSH

Ubiquiti recommends the Debug Console in UniFi Network as the simplest way to reach a device. Open the device, go to its settings panel, scroll to the bottom and select Debug. A terminal opens already connected to that device, so you do not need to look up the SSH password or install a client. It is a good first choice when you are away from the local network but can still reach the UniFi dashboard.

Connecting from Windows, macOS or Linux

  • Windows 10 and 11: open PowerShell or Windows Terminal and use the ssh command. PuTTY also works if you prefer a graphical client: enter the device IP address, keep port 22 and enter the credentials when prompted.
  • macOS and Linux: open Terminal and use the same command.
  • First connection: you are asked to trust the device’s host key. Check the IP address before you accept it.
  • Typing the password: nothing appears on screen while you type. That is normal.

Useful UniFi SSH commands

Commands differ between access points, switches and consoles, so treat this as a starting list and avoid running anything you do not understand on live equipment.

Command What it does
info On many access points and switches, shows model, firmware, IP address and adoption status
set-inform http://controller-ip:8080/inform Points a device at your controller
ip addr Lists network interfaces and addresses
ping controller-ip Tests whether the device can reach the controller
reboot Restarts the device, which interrupts connected users
exit Closes the session

Common SSH error messages

Permission denied

The username or password is wrong for that device. Confirm the site, the device type and whether the device has received the latest credentials.

Connection refused

The device answered but SSH is not accepting connections. Check that SSH is enabled, particularly on a console.

Connection timed out

Your computer cannot reach the address. Check the IP address, VLAN, firewall rules and VPN.

Remote host identification has changed

The stored key no longer matches, often after a reset or replacement. Verify the device first, then run ssh-keygen -R device-ip-address to remove the old entry.

Frequently asked questions

What is the username for UniFi SSH?

For adopted access points and switches it is the username shown under Device SSH Authentication. For consoles and gateways it is root.

Is my UI account password the SSH password?

No. Device SSH credentials are set separately inside UniFi Network, and console SSH has its own setting in UniFi OS.

Can I recover the password from the device itself?

No. View or change it in UniFi Network. If the device is no longer managed and the password is unknown, a factory reset is the usual route.

Where do I find the UniFi device SSH password in the controller?

In current versions it is under UniFi Devices, Device Updates and Settings, Device SSH Settings. Older versions keep it under Settings, System, Advanced.

Is SSH enabled by default on UniFi?

It is enabled on UniFi network devices and disabled on UniFi consoles.

What port does UniFi SSH use?

SSH uses port 22 unless it has been changed.

If your office network keeps causing trouble, our managed IT services for small businesses include network monitoring and support, and our cyber security services can review how management access is locked down. You can also request a quote.

Sources: Ubiquiti Help Center, Connecting to UniFi with Debug Tools and SSH. Checked November 2026.

Ashkan Dastmalchi
Ashkan Dastmalchi
https://systemsupport.ca

Leave a Reply

Your email address will not be published. Required fields are marked *