A pentest finds that a production SSH key pair has not changed in six years, and a former administrator still holds a copy of the private key. What is the BEST remediation?
Show the answer
Correct answerB. Rotate the key pair and remove the old public key from every host
AWhy not this: Renewing a certificate with the same key pair changes nothing about the compromised private key and concerns TLS, not SSH.
BWhy this is right: A new key pair plus removal of the old public key invalidates every copy of the old private key.
CWhy not this: Disabling root login narrows what the key can do but the copied key can still authenticate.
DWhy not this: A vault protects storage going forward but the former administrator's copy of the same key still works.
Rotating the key pair makes the copied private key useless once the old public key is removed from every host. Moving the same key into a vault protects future storage but does not invalidate the copy already held by the former administrator.