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:
parent
fc29fc89c0
commit
3d7541c0af
1 changed files with 521 additions and 67 deletions
|
|
@ -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`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue