termal.in

← Blog

Raspberry Pi remote access without port forwarding

· Termalin Team raspberry-piconnectorremote-accessiothomelab

You have a Raspberry Pi doing something useful at home — Pi-hole, Home Assistant, a camera, a print server, a backup box — and you want to reach it from the office, from your phone, or hand it to an AI agent. It’s behind your router, probably behind carrier-grade NAT, and forwarding port 22 is either impossible or a bad idea. Here’s how to reach any Pi, from a Zero to a 5, on a 32- or 64-bit OS, without forwarding a port and without leaving a long-lived key on the SD card.

Why you can’t just forward port 22

Two things get in the way. Most home fibre, cable and 5G connections now sit behind carrier-grade NAT (CGNAT) — many customers share one public IP, so there is no port on “your” address to forward. And even with a real public IP, an exposed sshd is found by scanners within minutes; the Pi’s auth log fills with brute-force attempts the moment it goes live. A Pi on an SD card with a default password is exactly what those scans are hoping to find.

The fix is to stop trying to accept a connection to the Pi. Instead the Pi makes an outbound connection to something reachable, and you ride that back in. Outbound works through CGNAT and strict firewalls, because it’s just another connection leaving the network.

One line on the Pi

A Termalin Connector is a small static binary that does exactly that. Sign in at termal.in/account, go to Servers → Add a server → type Connector → Get install command, and run the line it gives you on the Pi:

curl -fsSL https://termal.in/i/<token> | sudo sh

It downloads a build for the Pi’s processor (3.6–3.9 MB), enrolls the host, installs a systemd service and dials out to Termalin over a single HTTPS/WebSocket connection that it holds open. It never listens on a port, so there’s nothing inbound to allow, forward or scan. The install link carries the token, works for 24 hours, and can enrol several Pis in one go.

Every Pi, from Zero to 5

The installer reads uname -m and picks the right build — you don’t choose:

Raspberry PiOSConnector build
Pi 1, Zero, Zero W32-bit (ARMv6)termalin-agent-armv6, ~3.6 MB
Pi Zero 2 W, Pi 2, Pi 3 on a 32-bit OS32-bit (ARMv7)termalin-agent-armv7, ~3.6 MB
Pi 3, 4, 5 on a 64-bit OS64-bit (arm64)termalin-agent-aarch64, ~3.9 MB

All of these are static musl binaries with no runtime dependencies, so they drop onto Raspberry Pi OS, DietPi, Ubuntu or Alpine without pulling in packages. If you’d rather run it in a container — a Pi already running Docker, or a Pi NAS — there’s an official ~4 MB image for arm64, arm/v7 and arm/v6; see the Connector in Docker.

No key on the SD card

This is the part that matters for a device you can’t physically secure. Enrollment makes the Pi’s sshd trust Termalin’s SSH certificate authority, and every login then uses a short-lived certificate minted per session. There is no long-lived private key sitting on the SD card to copy — pull the card out, image it, and there’s nothing on it that still gets anyone in. The Connector only ever moves opaque SSH bytes between Termalin and the Pi’s own sshd on localhost, so it never sees your credentials or session plaintext.

What you reach through it

Once the Pi is enrolled, everything reaches it keylessly:

  • A web terminal. Open a real SSH session from the browser — your phone, a work laptop, any machine that isn’t yours. See the web SSH client.
  • The Pi’s own web UI. Pi-hole’s admin page, Home Assistant, Grafana, Portainer — reach them at a private address without exposing them, through internal sites. The full walkthrough is in reach Home Assistant or Grafana without port forwarding.
  • An AI agent. Point Claude, ChatGPT or Cursor at the Pi through the hosted MCP endpoint and let it check logs, update packages or diagnose a service — with no key handed out and every command in an audit trail.
  • Monitoring and alerts. A Pi with a Connector gets disk, memory and service alerts with nothing extra to install — handy for a box with no screen and no open port.

It stays up on its own

Pis lose power, SD cards get full, networks blip. The Connector is installed as a service, so it reconnects by itself after a reboot and after a dropped link — you don’t babysit it. On a host that only gives you a shell and no service manager, a cron watchdog keeps it alive instead.

Honest about the edges

  • You reach the Pi through Termalin’s hosted side — the web terminal, the desktop and iOS apps, or an AI agent — not with a raw ssh pi@… from your own machine. If a plain local terminal is what you want, a mesh VPN fits better (below).
  • The Connector is part of the paid tier — Pro or the 14-day trial.
  • The ARM builds are exercised in our 57-system install matrix under CPU emulation, the same way the router builds are, rather than on a physical board of every model. A static musl binary that runs under emulation behaves the same on the metal, but that’s the honest testing status.
  • Only ARMv6 and newer. ARMv5 and soft-float boards (some very old NAS units, not Pis) are refused with a clear message.

When a mesh VPN fits better

If everyone connecting is you, across your own devices, and you want a normal ssh pi@home from a terminal, a mesh VPN like Tailscale or WireGuard is usually the whole answer and exposes nothing. The Connector is the option built for browser access from any device and supervised agent access to a box with no public address and no key to steal. The full comparison — reverse tunnels, mesh VPNs, Cloudflare Tunnel and the outbound Connector side by side — is in SSH behind NAT without port forwarding, and the homelab angle is in SSH into a home NAS or server.


Termalin is a free, cross-platform SSH client with a web terminal and a keyless Connector for private devices — download it, or see how it handles your keys safely.

Try it on one host.

Termalin is a fast SSH client for you — and your agents.

Free tier · 14-day Pro trial · pricing

Add Termalin as a preferred source on Google