Bird
0
0

You tried to connect with SSH key authentication but still get a password prompt. Which is the most likely cause?

medium📝 Debug Q14 of 15
Linux CLI - SSH and Remote Access
You tried to connect with SSH key authentication but still get a password prompt. Which is the most likely cause?
AThe public key was not copied to the server
BThe private key file is missing on the server
CThe SSH server is turned off
DThe username is incorrect
Step-by-Step Solution
Solution:
  1. Step 1: Check key placement

    If the public key is not on the server, SSH cannot authenticate without a password.
  2. Step 2: Understand private key location

    The private key stays on the client, so missing it on the server is irrelevant.
  3. Final Answer:

    The public key was not copied to the server -> Option A
  4. Quick Check:

    Missing public key on server = password prompt [OK]
Quick Trick: Public key must be on server for key login [OK]
Common Mistakes:
  • Looking for private key on server
  • Assuming SSH server off causes password prompt
  • Blaming wrong username without checking keys

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes