Bird
0
0

After running ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa, you notice the public key file is missing. What is the most probable cause?

medium📝 Debug Q7 of 15
Linux CLI - SSH and Remote Access
After running ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa, you notice the public key file is missing. What is the most probable cause?
AThe command failed due to insufficient disk space
BYou accidentally specified a filename without the .pub extension for the public key
CYou used a passphrase that prevented public key creation
DThe private key file overwrote the public key file
Step-by-Step Solution
Solution:
  1. Step 1: Understand ssh-keygen output files

    ssh-keygen creates two files: private key (filename) and public key (filename.pub).
  2. Step 2: Identify common mistake

    If you look only for the private key filename, you might miss the public key which has .pub extension.
  3. Final Answer:

    You accidentally specified a filename without the .pub extension for the public key -> Option B
  4. Quick Check:

    Public key = filename.pub [OK]
Quick Trick: Public key always ends with .pub [OK]
Common Mistakes:
  • Expecting public key without .pub extension
  • Assuming passphrase affects public key creation
  • Thinking private key overwrites public key

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes