Bird
0
0

Which file is created by default when you run ssh-keygen without any options?

easy📝 Conceptual Q2 of 15
Linux CLI - SSH and Remote Access
Which file is created by default when you run ssh-keygen without any options?
A~/.ssh/id_rsa and ~/.ssh/id_rsa.pub
B/etc/ssh/ssh_host_rsa_key
C~/.ssh/authorized_keys
D/var/log/ssh_key.log
Step-by-Step Solution
Solution:
  1. Step 1: Identify default key file names

    By default, ssh-keygen creates a private key named id_rsa and a public key named id_rsa.pub in the ~/.ssh directory.
  2. Step 2: Understand other file roles

    /etc/ssh/ssh_host_rsa_key is server host key, authorized_keys stores allowed public keys, and /var/log/ssh_key.log is unrelated.
  3. Final Answer:

    ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub -> Option A
  4. Quick Check:

    Default ssh-keygen files = id_rsa and id_rsa.pub [OK]
Quick Trick: Default keys saved in ~/.ssh/id_rsa* [OK]
Common Mistakes:
  • Confusing authorized_keys with generated keys
  • Thinking keys are stored in /etc/ssh
  • Assuming logs are created by ssh-keygen

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes