Finding and connecting to SSH hosts from Android

Short answer. On Wi-Fi, test the selected TCP port—22 by default—across the current /24 and present the addresses that accept a connection. Then begin SSH normally: verify the server's host-key fingerprint before sending credentials. Discovery can find an open port; it cannot decide that a changed host key is safe.

Dotori SSH Terminal app icon

Dotori SSH TerminalCombines local port discovery, direct host entry, an Android terminal, secure on-device credential storage, and TOFU host-key checks.

Get it on Google Play

Find the service before asking for credentials

If you know that an SSH server is somewhere on the current Wi-Fi but not which address it has, a narrow port scan is enough. For a /24, test the 254 host addresses on the chosen port and list the ones that accept a TCP connection. If SSH runs on a nonstandard port, scan that port instead of assuming 22.

An open port is still only a candidate. The service may not be SSH, and a closed port may mean that the server is asleep, filtered, on another VLAN, or listening elsewhere. Direct connection by IP address or hostname should remain available even when the phone is not on Wi-Fi.

Keep discovery data separate from secrets

A handoff from a network scanner needs only the target coordinates:

host + port
not username + password

The receiving SSH app should open its own credential prompt. That keeps passwords out of deep links, browser histories, logs, and another app's storage. If you choose to remember credentials, they belong in the SSH app's private secure storage and should be keyed by host and port.

TOFU starts after the network connection

SSH host keys answer a different question from passwords. A password proves who the user is to the server. The host key helps the user recognize the server. With Trust On First Use (TOFU), the first connection shows the key type and SHA-256 fingerprint and asks the user whether to remember it.

On later connections, an identical fingerprint can proceed. A different fingerprint deserves a prominent warning because it may mean the server was reinstalled or its keys were rotated—but it can also indicate interception. Do not replace the saved fingerprint silently. Verify the new key through a trusted channel before accepting it.

What to check when no SSH host appears

SSH grants command execution on another machine. Use it only on systems and networks you own or are authorized to administer.

Direct connection, prompt, terminal, settings, and privacy screens

Direct SSH connection screen
A known host and port can be entered directly without running discovery first.
SSH credential prompt
Credentials are requested inside the SSH app, not carried in a discovery link.
Connected SSH terminal session
Once connected, commands run in a real terminal with a modifier and arrow key bar.
SSH Terminal settings
Language, theme, text size, and terminal behavior are explicit settings.
SSH network and privacy information
Network use, local storage, and authorized-use boundaries are shown in the app.
Dotori SSH Terminal startup screen
The app opens on a short branded startup screen before the home view.

Dotori SSH Terminal finds hosts on the selected local port, then keeps SSH credentials, terminal content, and trusted host keys in the SSH connection path. More about Dotori SSH Terminal

Get it on Google Play

Related notes