SSH to a server over HTTPS port 443
Hotel, office and mobile networks often block outbound port 22 but allow HTTPS. A private YakTunnel TCP endpoint carries SSH over port 443, and the server never opens an inbound port.
How it works
-
Create a private endpoint
Run this on your own machine. Private TCP endpoints admit only credentials that have a grant; you get one automatically.
Shellyaktunnel tcp-access build-box create --project infra -
Create a connector key for the server
Give the server its own automation identity, scoped to this one endpoint. The key is printed once.
Shellecho '{"name":"build-box-connector","scopes":["connect","endpoints:read"],"endpoint_id":"ENDPOINT_ID"}' > p.json yaktunnel principal create p.json -
Run the connector on the server
Store the key in a file only root can read. The connector dials out over HTTPS and forwards to sshd on loopback, so no inbound port is opened.
Shellyaktunnel tcp 127.0.0.1:22 --name build-box --project infra \ --credential-file /etc/yaktunnel/build-box.token -
Connect with your normal ssh
Add a Host block once, then use ssh as usual. Every new connection checks both your credential and the endpoint grant.
Shellyaktunnel ssh-config build-box --user deploy >> ~/.ssh/config ssh build-box
Need the CLI first? Install it and sign in.
Good to know
- Grant teammates or CI identities access with yaktunnel tcp-access build-box grant. Revoking a grant closes open sessions within 15 seconds.
- Each connection is audited (who, when, bytes, close reason) without recording payloads. Audit rows are kept for 90 days.
- Connector targets are loopback by default, so an endpoint can’t be turned into a proxy to other hosts.
Related
Set it up in a few minutes.
The free plan needs no card and includes stable URLs from the first command.