Bird
0
0

After copying your public key to the remote server, which command tests if key-based authentication works without password prompt?

medium📝 Command Output Q5 of 15
Linux CLI - SSH and Remote Access
After copying your public key to the remote server, which command tests if key-based authentication works without password prompt?
Assh-copy-id user@remote-server
Bscp file.txt user@remote-server:/tmp
Cssh user@remote-server
Dssh-keygen -y
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of each command

    ssh connects to the server, scp copies files, ssh-copy-id copies keys, ssh-keygen -y prints public key from private.
  2. Step 2: Identify the command to test key-based login

    Simply running ssh user@remote-server tests if login works without password prompt.
  3. Final Answer:

    ssh user@remote-server -> Option C
  4. Quick Check:

    Test key-based login with ssh = C [OK]
Quick Trick: Use ssh to test key-based login after setup [OK]
Common Mistakes:
  • Using ssh-copy-id again instead of testing login
  • Trying scp which requires authentication too
  • Misusing ssh-keygen for testing login

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes