Bird
0
0

You want to enable SSH access on Raspberry Pi OS without connecting a monitor or keyboard. What is the correct way to enable SSH before first boot?

hard📝 Application Q9 of 15
Raspberry Pi - Platform
You want to enable SSH access on Raspberry Pi OS without connecting a monitor or keyboard. What is the correct way to enable SSH before first boot?
AAdd 'enable_ssh=1' to config.txt
BRename cmdline.txt to ssh.txt
CRun 'sudo systemctl enable ssh' on another computer
DCreate an empty file named 'ssh' in the boot partition of the microSD card
Step-by-Step Solution
Solution:
  1. Step 1: Understand SSH enabling method on Raspberry Pi OS

    Creating an empty file named 'ssh' in the boot partition enables SSH on first boot.
  2. Step 2: Evaluate other options

    Adding 'enable_ssh=1' to config.txt or renaming cmdline.txt are incorrect; running systemctl on another computer has no effect.
  3. Final Answer:

    Create an empty file named 'ssh' in the boot partition of the microSD card -> Option D
  4. Quick Check:

    Enable SSH by adding empty 'ssh' file [OK]
Quick Trick: Add empty 'ssh' file to boot partition to enable SSH [OK]
Common Mistakes:
  • Editing config.txt wrongly
  • Trying to enable SSH from another PC

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes