Bird
0
0

You run ssh-copy-id user@server but still get password prompt on login. What is a likely cause?

medium📝 Debug Q6 of 15
Linux CLI - SSH and Remote Access
You run ssh-copy-id user@server but still get password prompt on login. What is a likely cause?
APrivate key missing on client
BIncorrect permissions on ~/.ssh or authorized_keys on server
CWrong username used in ssh-copy-id
DSSH service not running on server
Step-by-Step Solution
Solution:
  1. Step 1: Check common causes for password prompt after copying keys

    Incorrect permissions on ~/.ssh or authorized_keys prevent SSH from accepting keys.
  2. Step 2: Differentiate from other causes

    Private key missing causes immediate failure, wrong username causes connection issues, SSH service down causes connection refusal.
  3. Final Answer:

    Incorrect permissions on ~/.ssh or authorized_keys on server -> Option B
  4. Quick Check:

    Permission issues cause password prompt = A [OK]
Quick Trick: Fix permissions on ~/.ssh and authorized_keys on server [OK]
Common Mistakes:
  • Ignoring file permission problems
  • Assuming private key missing when it exists
  • Not verifying SSH service status

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes