mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-03 23:22:23 -08:00
On macOS, launchd's sshd-keygen-wrapper recreates missing system host keys on any TCP connection to port 22. tailssh preferred system keys and re-read them on every connection, but only advertised its keys in Hostinfo at startup or on prefs changes, so peers then failed host key verification. Keep using host keys tailssh previously generated even if system keys appear later, and load the keys once per process. Fixes tailscale/corp#52474 Change-Id: I3ab9d27ecb246b91d184700ca6aabbb366f11023 Signed-off-by: Brad Fitzpatrick <[email protected]>