Install qqt
Put the binary on the machine you type on and that is the whole install. Nothing is installed on the far side: qqt remote up <box> ships this binary down the ssh channel it just authenticated, mints the door around the box's own host key, and dials — the far half runs from the login user's own state directory. Reach one side over ssh and open a UDP port on either side, and it runs. The cert-set steps below are the scripted lane, for a deployment that stages its own material.
Run this Command
qqt remote up gpu-box -L 8080:localhost:8888
One command from your box: ssh in, ship the binary, mint the door, start it, dial. Run it again and it attaches to the door already running.
Or take the scripted lane: mint a cert set.
For a deployment that pre-stages its own material instead of letting the mount mint it. The crate is not published on crates.io, so there is no cargo install qqt; you start from a checkout either way.
-
1
Put the binary where your shell finds it
cargo install --path . --locked carries the binary only; the mount needs nothing else.
-
2
Mint a cert set where you operate
qqt gencert -o ./qqt-certs writes keys
0600and certs0644, and mints a 365-day validity window the TLS handshake enforces on both sides. -
3
Ship
server/, keepclient/The CA key stays with you.
gencertrefuses to overwrite an existing set without-f. -
4
Name the box the way you already do
-r <box> resolves through your own ssh client —
Host,Match,Include, globs and ordering as ssh itself resolves a name. The config supplies the port; an explicit :port overrides it.
cargo install --path . --locked
qqt gencert -o ./qqt-certs
qqt server --listen 0.0.0.0:4433 \
--certs-dir /etc/qqt/server-certs
qqt client -l 127.0.0.1:15432:10.0.0.5:5432 \
-r <box>:4433 \
--certs-dir ./qqt-certs/client
127.0.0.1:15432 is now 10.0.0.5:5432 as the box sees it. You are done
when the client prints ok: connected.
The remote half, done for you.
qqt up <box> ships the running
binary to the box, stops the old server, starts the new one under
setsid, and proves the door with a real mTLS handshake.
--dry-run prints the whole plan without
executing it.
ssh [email protected] 'mkdir -p /etc/qqt'
scp -r ./qqt-certs/server \
[email protected]:/etc/qqt/server-certs
qqt up [email protected] \
--listen 0.0.0.0:4433 \
--certs-dir /etc/qqt/server-certs \
--client-certs-dir ./qqt-certs/client \
--verify 203.0.113.10:4433
One path per box
Never keep a second copy
The shipped units run /usr/local/bin/qqt; qqt up instead ships to /root/qqt, its own --dest default. Pick one per box — a second copy silently goes stale while the built one moves on.
The full runbook
Cert custody, the systemd unit, supervision and the GPU-rental pattern: the runbook. Re-minting and offboarding: cert custody.