Run shell commands on another Android device over Wi-Fi with no cable, and reach a server over SSH and SFTP.
You are running shell commands on another Android device over Wi-Fi, with no cable and no computer in between.
Before you begin
This page covers two tools. Terminal reaches another Android device over Wi-Fi using ADB (Android Debug Bridge); SSH Terminal reaches a remote server. They share a subscription tier and nothing else, so the prerequisites differ.
For both:
- Test Nexus on the phone you are working from.
- A Platinum subscription. Terminal and SSH Terminal are both Platinum features.
For ADB over Wi-Fi only:
- Android 11 or newer on both phones — the one you control, because wireless debugging does not exist below it, and the one you work from, which is the minimum Test Nexus itself supports.
- Both devices on the same Wi-Fi network.
For SSH only: a reachable host, and a username with either its password or an imported private key.
CautionFor the ADB path, Android 11 is a floor rather than a preference: wireless debugging did not exist before it, so on an older device there is nothing to turn on and no workaround from this app. It does not constrain the SSH path.
Turn on wireless debugging
- Reveal Developer options. On the device you want to control, open Settings, then About phone, and tap Build number seven times. A message confirms Developer options are on.
- Turn on Wireless debugging. Open Settings, then Developer options, then Wireless debugging, and confirm the prompt.
- Leave that screen open. The next two steps read values from it.
Pair, then connect
- Start pairing on the device. Tap Pair device with pairing code. It shows an IP address, a pairing port and a six-digit code.
- Enter all three in Test Nexus. Open the Terminal tile from the App Hub, which starts the setup wizard, put the IP address, pairing port and code into it, and tap Pair. Do it promptly — the code expires.
- Find the connection port. Back on the Wireless debugging screen, read the connection port.
- Connect. Enter that port in Test Nexus and tap Connect. The status bar shows Connected with the device name.
NoteThe pairing port and the connection port are two different numbers on the same screen, and reusing the first is the most common reason pairing succeeds while connecting does not.
Run commands
- Type a command and tap Execute. Output appears above the input, color-coded so your command, its output and any error stay distinguishable — errors are red.
- Move through history with the on-screen arrows, and tap a suggestion as you type to complete it.
- Open Quick Actions in the top bar for the built-in command catalog, grouped by category such as Apps, Device, Screen, Network and Debug. Some prompt for input first, such as a package name.
- Chain commands with Scripts. Use the
${VAR_NAME} syntax for a variable and Test Nexus asks for each value when the script runs.
NoteNo built-in command needs root. One that does fails with a clear message rather than silently doing nothing. Long-press any output line to select and copy it.
Reach a server over SSH instead
SSH Terminal is the other half of the tool. It connects to remote Linux servers, virtual machines and devices rather than to an Android handset.
- Open SSH Terminal from the App Hub. The SSH Connections screen opens.
- Save a connection profile. Tap + and give it a name, the host, the port (22 by default) and your username.
- Choose Password authentication. Test Nexus does not keep the password in the profile — it asks each time you connect.
- Tap the saved profile to connect. Tapping the row connects; the pencil icon edits it instead.
- Check the fingerprint, then enter your password. On the first connection to a host, Test Nexus shows the server’s host key fingerprint. Confirm it matches what your administrator gave you, tap Accept, then enter your password when prompted.
- Work in the session. The extra key row gives you Ctrl, Tab, Esc and the arrows; SFTP browses and transfers files; you can forward ports and keep several sessions open across tabs.
That fingerprint check is the part worth not skipping: Test Nexus warns you if a host key ever changes, and a changed key is how impersonation becomes visible.
How to confirm it worked
ADB over Wi-Fi: after Connect, the status bar reads Connected with the device name. Run something harmless — ls — and confirm its output appears above the input.
If pairing fails, the code has usually expired; request a new one and enter it quickly. If pairing succeeds but connecting does not, you are almost certainly using the pairing port rather than the connection port.
SSH: after you accept the fingerprint and enter your password, the tab shows a shell prompt for your account on the host. Run whoami and confirm it returns the username from the profile. If the session closes immediately, the password or the username is wrong; if it never opens, the host or port is.
If it didn't, email support@twocan.us.
What’s next
Once you can reach the device, capture a crash from it — the same handset, a different tool.