A bastion host is the one server you SSH through to reach everything private in a VPC — and it’s an EC2 instance you patch, an inbound rule you keep narrow, and the single most attractive target on the network. You can keep the reach and drop the box: run the Termalin Connector as an ECS service with desired count 1, outbound HTTPS only, and reach your private instances, databases and internal sites from a browser or an AI agent — with no load balancer, no inbound rule, and no key sitting on a jump box.
What a bastion costs you
The jump-host pattern is sound — one hardened door, one place to audit. The failure modes are well known, and two of them are about what ends up on the box (keys in ~/.ssh, a forwarded agent socket anyone with root can borrow — see SSH through a jump host with ProxyJump). ProxyJump fixes those by keeping your key on your laptop and treating the bastion as a pure transport. But even done right, a bastion still is:
- an inbound SSH rule open to your IP (or to the world), which scanners find in minutes;
- an instance to patch and keep alive, with its own
sshdto harden; - an identity to authenticate the first hop, which someone has to issue and rotate.
The Connector removes all three. It’s not a better bastion — it’s the same reach with nothing listening.
The Connector as an ECS service
Run the official image as a Fargate or EC2 service, desired count 1:
- Token from Secrets Manager as
TERMALIN_TOKEN— used only on the first start. - EFS at
/data, through an access point with uid/gid 10001, so the enrolment persists across task restarts (the container runs as uid 10001). - Outbound HTTPS to termal.in is all it needs. No load balancer, no target group, no inbound security-group rule, no public IP.
- The target security groups must let the task reach them on the ports you use — 22 for SSH, 3389 for RDP, whatever your internal sites listen on.
Keep desired count at 1: two tasks on the same EFS would be the same Connector twice. Update by rolling the service to a new image tag — the container never updates itself, and EFS keeps the enrolment so it comes back as the same Connector.
What you reach, and what each path needs
Two kinds of reach, same split as everywhere the Connector runs:
-
Private EC2 instances over SSH — a terminal in the browser,
ssh_exec, SFTP, backups and metrics. These need an SSH server on the target and the sign-in line in itsauthorized_keys:cert-authority,principals="termalin-<account id>" ssh-ed25519 AAAA… termalin-connectorDrop that into the login user’s
authorized_keysvia user-data or your config management, and Termalin’s short-lived certificates sign in — no long-lived key anywhere. -
Internal sites, desktops and databases — these dial straight to
host:portand need nosshd. An internal admin panel on a private instance, an RDP/VNC desktop, or a database by its private endpoint: a managed database like RDS in a private subnet has a VPC-private address, so you can reach it from the cabinet’s database client with its password, dialled toyour-db.xxxx.rds.amazonaws.com:5432.
The security win: metadata is refused
A bastion that gets talked into making requests for an attacker is a classic VPC pivot — especially toward the instance metadata service to lift IAM credentials. The Connector closes that door: dial targets must be private addresses, and cloud metadata addresses (169.254.169.254 and the like) are always refused, the ECS task’s own metadata endpoint included. It’s an outbound agent to your private hosts, not a relay — it can’t be pointed at the internet or at the credentials endpoint.
Combined with the keyless model, the posture is: no inbound port, no key on a jump box, no metadata reachable, and every command an agent runs written to an audit log under a per-Connector command policy (full, allowlist or read-only). The custody model is on SSH for AI agents.
When a bastion still makes sense
Honest about the fit:
- If your team wants a plain
ssh db.internalfrom a terminal and everyone already has keys, aProxyJumpbastion over stock OpenSSH is a fine answer you can build in an afternoon — the ProxyJump guide is the clean way to do it. - The Connector reaches hosts through Termalin’s hosted side — the browser terminal, the apps, or an agent — and needs a Termalin account on Pro or the 14-day trial.
- One Connector targets one SSH server for shells (
TERMALIN_TARGET); run another task for a second shell target, though internal sites and desktops can name any private address in the VPC.
The same image, other networks
An ECS task is one shape of the Connector in Docker. The same ~4 MB image runs as one replica in Kubernetes to reach cluster services and as one container that reaches a whole home network — outbound-only, no inbound port, wherever the private network is.
Termalin is a free, cross-platform SSH client with a web terminal, internal sites and a keyless Connector for private networks — download it, or read the security model. The Connector needs Pro or the 14-day trial.