Bird
0
0

What will be the output of the following command if the default key files already exist?

medium📝 Command Output Q13 of 15
Linux CLI - SSH and Remote Access
What will be the output of the following command if the default key files already exist?

ssh-keygen -t ed25519
AIt throws an error and exits immediately
BIt overwrites the existing key files without warning
CIt prompts to overwrite the existing files or choose a new name
DIt generates a new key with a random filename automatically
Step-by-Step Solution
Solution:
  1. Step 1: Understand ssh-keygen behavior on existing files

    When key files already exist, ssh-keygen asks the user if they want to overwrite or specify a new filename.
  2. Step 2: Confirm it does not overwrite silently or error out

    It does not overwrite without confirmation, nor does it throw an error or generate random filenames automatically.
  3. Final Answer:

    It prompts to overwrite the existing files or choose a new name -> Option C
  4. Quick Check:

    ssh-keygen asks before overwrite = A [OK]
Quick Trick: ssh-keygen asks before overwriting existing keys [OK]
Common Mistakes:
  • Assuming it overwrites files silently
  • Expecting an error instead of prompt
  • Thinking it auto-generates random filenames

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes