Troubleshoot connections and host key warnings

Read the connection log, handle host key prompts, and fix SSH sign-in failures such as a key that hasn't synced to this device.

Read the connection log

While a tab connects, Duo22 shows each step: resolving the address, connecting, checking the host key, signing in and opening the session. Click Show logs to see every step. If it fails, the error appears in red; click Show all steps to see everything that happened, then Start over to try again.

During SSH sign-in, look for lines such as Trying your SSH key, Trying the saved password and Trying keyboard-interactive authentication. They tell you which credentials were actually tried.

Online, but sign-in fails

The Online status on the Hosts page only checks that the port answers; it doesn’t log in. If the host is online but sign-in fails:

  1. Check the host has an Identity, or a Username. “no username configured” means neither is set.
  2. If you use a key, make sure its public half is in ~/.ssh/authorized_keys on the server (use Copy public key in Keychain).
  3. Check the log: if Trying your SSH key is missing, Duo22 didn’t have a key for this host.

See SSH keys and identities for the order Duo22 tries credentials in.

Works on one device but not another

If a host signs in on one computer but not on another, the identity or key it uses may not have synced yet. The log and the error then include a note such as:

The SSH key linked to “…” isn’t on this device yet. It may not have synced from the device that added it.

To fix it:

  1. On the device where it works, look at the sync status under the navigation. If it shows changes pending, click it to sync now. Items not yet synced show a pending badge.
  2. Wait until it shows Synced.
  3. Try again on the other device.

A host that goes through a jump host which isn’t on this device won’t connect at all; Duo22 refuses rather than connecting directly, and sends nothing.

Verify host: first connection

The first time you connect to an SSH server, Duo22 shows Verify host with the server’s Key type and Fingerprint. On the server, print the fingerprint to compare:

ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub

If they match, click Trust and connect. The key is remembered and synced, so every device recognises the server.

Host key changed

If a server presents a different key, Duo22 shows Host key changed with a Possible man-in-the-middle attack warning, plus the Previously trusted and New fingerprint values. This happens after a server is reinstalled, but it can also mean someone is intercepting the connection. Click Disconnect unless you have confirmed the new key with the server’s administrator; only then click Trust new key.

Remote desktop certificates work the same way; see Remote desktops, Telnet and serial consoles.

Manage known hosts

Settings → Known hosts lists the host keys and Remote Desktop certificates you have trusted. To verify a server again, click its delete button and confirm Forget. You’ll be asked to verify the key on the next connection.

Scan network finds nothing on a Mac

If Scan network says Couldn’t scan the network or finds no devices, allow Duo22 in System Settings → Privacy & Security → Local Network. See Import hosts and scan your network.

Still stuck? Check the FAQ, or browse thehelp centre.