Raspberry Pi - Security and DeploymentWhich of the following commands correctly enables SSH on a Raspberry Pi during headless setup?AAdd 'enable_ssh=1' to config.txtBCreate an empty file named 'ssh' in the boot partitionCRun 'sudo systemctl enable ssh' before shutdownDAdd 'ssh=on' to wpa_supplicant.confCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand SSH enabling method for headlessPlacing an empty file named 'ssh' in the boot partition enables SSH on first boot.Step 2: Evaluate other optionsAdding 'enable_ssh=1' or 'ssh=on' is incorrect syntax; running systemctl requires prior access.Final Answer:Create an empty file named 'ssh' in the boot partition -> Option BQuick Check:Enable SSH by empty 'ssh' file = A [OK]Quick Trick: Empty 'ssh' file in boot enables SSH [OK]Common Mistakes:MISTAKESTrying to enable SSH via config.txtUsing wrong syntax in wpa_supplicant.confAssuming systemctl works without prior access
Master "Security and Deployment" in Raspberry Pi9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Raspberry Pi Quizzes Automation and Scheduling - systemd service for auto-start - Quiz 7medium Automation and Scheduling - Cron jobs for scheduled tasks - Quiz 1easy Data Logging and Databases - Why data logging matters for IoT - Quiz 11easy Data Logging and Databases - Why data logging matters for IoT - Quiz 5medium Data Logging and Databases - Why data logging matters for IoT - Quiz 7medium MQTT for IoT - MQTT with QoS levels - Quiz 15hard MQTT for IoT - Subscribing to control topics - Quiz 9hard Security and Deployment - Backup and recovery strategies - Quiz 10hard Web Server and API - Serving sensor data as JSON API - Quiz 12easy Web Server and API - Controlling GPIO through web interface - Quiz 10hard