An internal Linux server exposes only TCP 22, and its SSH daemon refuses password logins. A tester on a compromised host finds an unencrypted private key in a user's .ssh directory. Which action is BEST first?
Show the answer
Correct answerC. Attempt public key authentication to TCP 22 with the recovered private key
AWhy not this: SSH encrypts the session, so a capture does not expose a password in readable form.
BWhy not this: Only TCP 22 is exposed, and Telnet is a separate cleartext service that does not use SSH keys.
CWhy this is right: With password logins refused, the stolen private key is the usable credential for SSH.
DWhy not this: The daemon refuses password logins, so guessing passwords cannot succeed whatever is tried.
Because the server accepts only key-based logins, the recovered private key is the credential to try; it works if the matching public key is in the account's authorized keys. Password guessing fails against a daemon that refuses passwords, and SSH traffic is encrypted, so sniffing reveals nothing readable.