Skip to content

docs(ios023): reach a host over SSH - #1121

Merged
kyya merged 2 commits into
mainfrom
docs/ssh-hosts
Nov 25, 2026
Merged

kyya merged 2 commits into
mainfrom
docs/ssh-hosts

Conversation

@kyya

@kyya kyya commented Nov 25, 2026

Copy link
Copy Markdown

Problem

Rex Go's Add Host refuses ssh:// addresses (HostConfig.refusal, #504): the only ways in are an http(s) gateway address, a tailcat pairing code and the tailnet. A machine whose only way in is sshd cannot be a host. Upstream Rex's clients accept ssh:// already.

Change

Adds docs/IOS-023-ssh-hosts.md, a proposal. Rex Go accepts ssh://user@host[:port][/socket]; the engine's new SSH client (golang.org/x/crypto/ssh, already in the module graph) opens a direct-streamlocal channel to the host's Rex socket through the same loopback proxy the tailcat hosts use; the host key is trusted on first use; login is a device key in the Keychain or a password card. The semantics follow upstream Rex's ssh:// (address grammar, socket discovery through rex server status, no password in the URL); the mechanism differs, as iOS cannot spawn the system ssh the upstream CLI uses, and an SSH client in the Go engine fits the proxy every host's traffic already crosses.

Test

Docs-only change. go run ./tools/verify checks the doc's id, category and front matter.

Verified: go run ./tools/verify: design docs passed

@kyya
kyya merged commit cf22888 into main Nov 25, 2026
1 check passed
kyya added a commit that referenced this pull request Nov 25, 2026
IOS-023 went to the SSH hosts doc on main (#1121).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant