Bird
0
0

Which of the following commands correctly enables SSH on a Raspberry Pi during headless setup?

easy📝 Syntax Q3 of 15
Raspberry Pi - Security and Deployment
Which of the following commands correctly enables SSH on a Raspberry Pi during headless setup?
AAdd 'enable_ssh=1' to config.txt
BCreate an empty file named 'ssh' in the boot partition
CRun 'sudo systemctl enable ssh' before shutdown
DAdd 'ssh=on' to wpa_supplicant.conf
Step-by-Step Solution
Solution:
  1. Step 1: Understand SSH enabling method for headless

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

    Adding 'enable_ssh=1' or 'ssh=on' is incorrect syntax; running systemctl requires prior access.
  3. Final Answer:

    Create an empty file named 'ssh' in the boot partition -> Option B
  4. Quick Check:

    Enable SSH by empty 'ssh' file = A [OK]
Quick Trick: Empty 'ssh' file in boot enables SSH [OK]
Common Mistakes:
MISTAKES
  • Trying to enable SSH via config.txt
  • Using wrong syntax in wpa_supplicant.conf
  • Assuming systemctl works without prior access

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes