1. Transport
1. Transport¶
Result: works. SSH certificate auth to a rootless sshd on smaug,
carried by tailcat, runs a command in about 50 ms on the LAN.
Setup (2026-11-22)¶
- tailcat v0.7.0. Laptop: built with
GOBIN=<dir> go install github.com/tailscale/tailcat/cmd/tailcat@v0.7.0(releases ship no macOS binary; Homebrew has one). smaug: release tarball, checksum verified againstchecksums.txt, in~/.local/bin. - Test CA and client on the laptop:
ssh-keygen -t ed25519 -f ca,ssh-keygen -t ed25519 -f client,ssh-keygen -s ca -I spike-client -n gavin -V +4h client.pub. - smaug, as user
gavinwith no root: stock OpenSSHsshdwith its own host key and this config:
Port 2222
ListenAddress 127.0.0.1
HostKey <abs>/host_key
PidFile <abs>/sshd.pid
TrustedUserCAKeys <abs>/ca.pub
AuthorizedKeysFile none
PasswordAuthentication no
KbdInteractiveAuthentication no
UsePAM no
started as /usr/sbin/sshd -f <abs>/sshd_config -E <abs>/sshd.log.
- smaug: tailcat --key new --json --verbose serve 2222 (ephemeral address).
- Laptop: tailcat forward <tc-addr> 12222:2222, then
ssh -i client -o CertificateFile=client-cert.pub -p 12222 gavin@127.0.0.1 uname -sr.
Raw results¶
| Measure | tailcat + cert sshd | Tailscale SSH (baseline) |
|---|---|---|
ssh … uname -sr, wall clock |
0.048–0.052 s (5 runs) | 0.064–0.096 s (3 runs) |
100 MB from /dev/zero, smaug → laptop |
1.54 s ≈ 518 Mbit/s | 0.85 s ≈ 941 Mbit/s |
- Path: direct over the LAN. tailcat logged
via=directto 192.168.1.3; no relay involved. sshdloggedAccepted certificate ID "spike-client" … signed by ED25519 CA.
What we learned¶
- Certificate auth over tailcat works with stock parts. No code needed for the transport or identity layer of a spike.
- Rootless
sshdworks, but only with absolute paths. With-f sshd_config(relative), every connection died before the SSH banner (server_accept_loop: startup pipe 0 … Connection reset by peer):sshdre-executes itself per connection and loses the working directory. Easy to misread as a tailcat failure. - Userspace WireGuard costs throughput. About half of Tailscale's in-kernel path on gigabit LAN. Irrelevant for streaming logs and pushing git snapshots; it would matter for shipping large images per job, which is one more reason runners cache images.
- Not measured: relayed (DERP) paths and off-LAN latency. Both machines were on the same LAN. Worth one run from another network before the design leans on the numbers.
What it changes¶
Nothing in the design. It confirms SSH-over-tailcat as the job protocol and shows the glue-style spike (approach B) is viable for the remaining experiments. The server and client stayed running for experiment 3.