1

How to SSH into a UniFi Device from Another UniFi Device

In a UniFi network, there are situations where you might need to SSH into one UniFi device from another. This can be particularly useful for troubleshooting or configuring devices without needing direct access to each one individually. Below is a step-by-step guide on how to SSH into a UniFi device from another UniFi device.

Step 1: Enter Debug Mode on the UniFi Device

To start, you’ll need to enter debug mode on the UniFi device you’re currently connected to. Debug mode allows you to access advanced settings and capabilities, including the ability to SSH into other devices.

  1. Access the Device: Log in to your UniFi device via SSH or the UniFi Controller interface.
  2. Enter Debug Mode: Depending on your UniFi device, enter debug mode by clicking on the device you will be ssh’ing from on the UniFi device tab. Hit on debug near the bottom. (note you may need to enable Debug Tools under Settings -> System -> Advanced -> Debug Tools).
UniFi Debug Setting

Step 2: SSH into the UniFi Device from the Terminal

Once in debug mode, you can SSH into another UniFi device directly from the terminal.

  1. Use the SSH Command: In the terminal, type the following command:cssCopy codessh username@ip_address
    • username: Replace this with the appropriate username for the UniFi device you want to access (e.g., admin).
    • ip_address: Replace this with the IP address of the target UniFi device (e.g., 10.81.32.190).
    Example command:cssCopy codessh admin@10.81.32.190
  2. Hit Enter: Press the Enter key to initiate the SSH connection.
Unifi SSH

Step 3: Accept the Fingerprint

When connecting to a device for the first time, you’ll be prompted to accept the device’s SSH fingerprint.

  1. Confirm the Fingerprint: Type y and hit Enter to accept the fingerprint and proceed with the connection.

Step 4: Enter the Password

You’ll now be prompted to enter the password for the SSH connection.

  1. Type the Password: Enter the correct password associated with the username you used in Step 2.
  2. Hit Enter: Press Enter to authenticate and complete the SSH connection.
Unifi Username and Password

Step 5: You Should Now Be SSH’d In

If you’ve followed the steps correctly, you should now be logged into the target UniFi device via SSH, all without needing to set up port forwards. This method allows you to perform any necessary configurations or troubleshooting directly from another UniFi device in your network.

Unifi SSH into Switch

Summary

Using this approach, you can efficiently manage and troubleshoot your UniFi devices by leveraging SSH from one device to another. This can be particularly handy in large networks or when physical access to devices is limited.


Categories:

About The Author:


Comments

One response to “How to SSH into a UniFi Device from Another UniFi Device”

  1. […] How to SSH into a UniFi Device from Another UniFi Device while in try the info command to see a few basic […]