You admin a Keenetic router that isn’t in front of you, and you want a shell on it — plus the ability to reach the machines on the LAN behind it — from a browser or from an AI agent, without forwarding a port. Keenetic can’t run a container, and its firmware is closed, but it does run Entware on a USB stick, and that’s enough: a Termalin Connector installs into Entware’s /opt, dials out, and holds the link open. No inbound port, and the router’s own SSH stays exactly as it is.
Why Entware
KeeneticOS is closed — the only Linux shell you get is Entware, installed from the router’s OPKG component onto a USB stick (or, on models that allow it, internal storage) and mounted at /opt. The firmware’s own folders (/usr/local, /etc) are read-only, and /tmp and /var live in RAM. So the Connector puts everything inside /opt and writes nothing outside it. This is the same outbound-link idea as the Connector in a container on a NAS or home lab, adapted to a box that can only give you a shell, not a container.
Install it from Entware’s shell
SSH to the router’s Entware shell as root — port 222, or 22 if the router doesn’t have the separate “SSH server” component — then run two lines:
opkg update && opkg install curl
curl -fsSL https://termal.in/i/<token> | sh
Take the line from the cabinet: Servers → Add a server → type Connector → Get install command, Linux / macOS tab — run it without sudo, Entware’s shell is already root. curl is required: Entware’s busybox wget can’t do HTTPS (it answers “not an http or ftp url”), so the plain wget line used elsewhere won’t work here. The installer reads the processor — on MT7621 models uname -m says mips and a byte-order check picks the little-endian build; aarch64 models get the arm64 build — and installs the matching static binary.
What it changes, and what it leaves alone
The install stays entirely in /opt and is deliberately gentle with the router’s own services:
- Your SSH into the router doesn’t change. The router’s own SSH server (port 22) and Entware’s Dropbear (port 222) both stay as they are — neither can take Termalin’s certificate sign-in. The installer adds Entware’s OpenSSH next to them, on
127.0.0.1:2222only, because that one can accept the certificate. Nothing new listens on a public interface. - It’s a proper service.
/opt/etc/init.d/S99termalin-agent(start/stop/restart/status) is run byrc.unslungat boot and restarts the Connector a few seconds after it exits, so it survives reboots as soon as Entware comes up — in testing it was back about 15 seconds after a reboot. - The sign-in is a certificate, not a stored key. Enrolment writes a
cert-authorityline into/opt/root/.ssh/authorized_keys, and every login uses a short-lived certificate for your account; there’s no long-lived private key sitting on the router. - Footprint: about 30 MB in
/optin all — the Connector plus OpenSSH, OpenSSL and curl.
What you reach through it
- An Entware root shell on the Keenetic, in the web terminal, from anywhere.
- The LAN behind the router. Any dashboard or admin page on a private address becomes an internal site in a browser tab, published straight to its own
host:port— no SSH on those boxes needed. - An AI agent. Point Claude, ChatGPT or Cursor at the hosted MCP endpoint to run commands in the Entware shell, keyless and audited. Across several routers or sites, see managing an IoT fleet with AI over MCP.
Tested in emulation — the honest status
This was checked under emulation only — qemu-user, with no physical Keenetic. The KeeneticOS side (its firmware, its own SSH server, how it mounts the OPKG drive and calls rc.unslung) is a stand-in; only the Entware packages in /opt are the real thing, installed from Keenetic’s own Entware archives. Two processors passed: mipsel (MT7621) and aarch64 — in each the Connector installed to /opt, connected, ran a command through its tunnel, and came back after a kill and after a reboot.
What wasn’t covered, stated plainly:
- No physical Keenetic, and no real KeeneticOS — the firmware was imitated.
- A big-endian
mipsKeenetic and Entware on internal storage (rather than a USB stick) weren’t tested. - It runs only while Entware runs. The OPKG drive must stay attached and selected; a firmware update or a reset that drops the OPKG setting stops the Connector until that setting is restored.
- It is not KeeneticOS’s own CLI. You get an Entware shell, not the router’s native command line.
- Updates: rerun the install command.
For a router that can run a container, the equivalent is the Connector as a MikroTik RouterOS 7 container; for OpenWrt, the one-line installer handles ARM and MIPS alike.
Termalin is a free, cross-platform SSH client with a web terminal, internal sites and a keyless Connector for routers and edge devices — download it, or read the Connector in Docker. The Connector needs Pro or the 14-day trial.