Watch
0
0
Fork
You've already forked hyperhive
0

sign ssh certificates on demand from ssh itself, warn before setup, say what to do when a host key changes

This commit is contained in:
atlas 2026-11-16 19:42:44 +01:00 • committed by mara
commit 3d7541c0af

View file

@ -73,3 +73,12 @@ export function targetSnippet(
return `# in ~<user>/.ssh/authorized_keys on the target\n${authorizedKeysLine(agent, ca)}`;
}
}
/**
* The command that makes the agent forget a host's recorded key, run as root on
* the hive host after the operator has checked the new key out of band. The
* agent's pins live in its state directory.
*/
export function forgetHostKeyCommand(agent: string): string {
return `ssh-keygen -R <host> -f /agents/${agent}/state/ssh_known_hosts`;
}