Feature

SSH tunnels

Some brokers listen only on localhost or a private network, and an SSH server is the only way in. MQTT Commander opens the tunnel through that server first, then connects to the broker over MQTT.

Requires version 1.4.0 or later. The Doctor check is free. A live session through SSH comes with Pro.

A broker only your SSH server can see

Turn on “Connect through SSH” in a broker profile and pick one of your SSH servers. The app opens the tunnel before MQTT connects, so the broker address is read from the server's side: localhost means the SSH server itself.

If any step fails, the app does not fall back to a direct connection to the broker. Connection Doctor runs the SSH steps first, then TLS and MQTT, and names the one that broke.

SSH connection steps: the SSH server and host key passed, sign-in failed, and the app suggests what to check
The stages

Four SSH steps, then TLS and MQTT

SSH server

Connects to the SSH server. If it does not answer, Doctor points you to the address, the port and the network access. If the SSH handshake fails, it points you to the server's SSH settings.

Host key

Compares the key the server sends with the one you trusted. A key the app has not seen waits for your decision. A key that changed stops the connection before the app sends your password or key.

Sign-in

Signs in with the method you chose: password, private key, device key or the server's own questions (2FA). It names a rejected password, a rejected key, a wrong key passphrase or a rejected second factor.

Tunnel

Asks the SSH server to forward the connection to the broker. It names port forwarding the server denied, a broker the server cannot reach, and a tunnel that closed.

Check the host key before you trust it

The first connection shows the server's host key fingerprint in full, with the command to check it on the server. The app remembers the key you trust. If the server sends a different key later, the app stops before it sends your password or key, and a new key needs a separate, explicit decision.

Each SSH server keeps its trusted keys on its own card, with the date you trusted them and a Forget button.

Host key screen showing the full fingerprint of an SSH server the app has not seen before

One SSH server, many brokers

An SSH server is its own entry under SSH servers in Settings, like a certificate in the Certificate Manager. You save its host, port, username and sign-in method once, and each broker profile picks it with the “Connect through SSH” switch.

Sign in with a password, an OpenSSH private key, or a key created on the device in the Secure Enclave. For a device key, the app shows the public key line to paste into authorized_keys on your server, and you can require Face ID or Touch ID to use it. Passwords and keys live in the iOS Keychain, and export and import carry SSH servers without them.

Broker profile editor with the Connect through SSH switch on and an SSH server selected

SSH tunnels FAQ

Which version adds SSH tunnels?

MQTT Commander 1.4.0 and later. Update the app from the App Store, then turn on “Connect through SSH” in a broker profile.

Is the SSH check free?

Yes. On Free you can add an SSH server and run Connection Doctor through the SSH steps, TLS and MQTT. A live session through SSH, meaning topics, log, publish and Live Board, comes with Pro, a one-time $4.99 unlock with no subscription. If you bought the paid app before it went free, you keep Pro at no cost.

How do I sign in to the SSH server?

With a password, an OpenSSH private key, or a key created on the device in the Secure Enclave. You can import a key from Files. If the server asks for a 2FA code, the app shows it on its own screen.

What happens if the host key changes?

The app stops before it sends your password or key. A reinstalled server has a new key, and so does someone sitting between you and the server. Compare both fingerprints with the server administrator before you trust the new key.

What does localhost mean in the broker address?

With SSH on, the app reaches the broker from the SSH server. localhost then means the SSH server itself, which is the usual address for a Mosquitto broker running on the same machine.

Can several brokers share one SSH server?

Yes. You save an SSH server once, under SSH servers in Settings, and pick it in each broker profile. The server's host key and secrets are stored once.

Where are my SSH passwords and keys stored?

Passwords and imported keys live in the iOS Keychain, and a key created on the device lives in the Secure Enclave. Export and import carry SSH servers without passwords or keys. The app talks to your SSH server directly, and MQTT Commander runs no relay server in between.

Do Siri, Shortcuts and session restore work through SSH?

Yes, when the server asks for no code and the device key needs no Face ID. Otherwise the saved command asks you to open the app, and at launch you tap Connect.

Reach the broker behind your SSH server

SSH tunnels ship in MQTT Commander 1.4.0 for iPhone and iPad.

Free · Pro unlock $4.99, one-time