Documentation
¶
Overview ¶
Package mobile renders the "Code from your phone" card (with a scannable QR) and manages an idempotent ~/.ssh/config entry for the box, so connecting from Termius/Blink (or any terminal) is as close to one tap as the apps allow.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveSSHConfig ¶
RemoveSSHConfig deletes the box's block from ~/.ssh/config (used on destroy).
func WriteSSHConfig ¶
WriteSSHConfig idempotently writes the box's Host block into ~/.ssh/config (replacing any prior block for the same name) and returns the file path.
Types ¶
type Box ¶
type Box struct {
Name string // alias, e.g. "devbox"
FQDN string // MagicDNS FQDN, e.g. "devbox.tailXXXX.ts.net" (preferred)
IP string // 100.x tailnet IP (fallback / robust when MagicDNS isn't resolved)
User string // "dev"
KeyPath string // ~/.ssh/id_ed25519
}
Box is everything the mobile/desktop clients need to reach the server.
Click to show internal directories.
Click to hide internal directories.