Files
tailscale/ssh
Brad Fitzpatrick bf353f9754 ssh/tailssh: don't switch host keys when OpenSSH creates new ones
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]>
2026-12-03 11:54:26 -08:00
..