Recall & Review
beginner
What is the main benefit of using SSH keys instead of passwords for Raspberry Pi access?
SSH keys provide stronger security by using cryptographic keys instead of passwords, making it much harder for attackers to guess or brute-force access.
Click to reveal answer
beginner
How do you generate an SSH key pair on your local computer?
Use the command
ssh-keygen in the terminal. This creates a private key (keep secret) and a public key (share with Raspberry Pi).Click to reveal answer
beginner
What is the purpose of a firewall on a Raspberry Pi?
A firewall controls which network connections are allowed or blocked, protecting the Raspberry Pi from unwanted access or attacks.
Click to reveal answer
intermediate
Which command can you use to enable the firewall on Raspberry Pi running Linux?
You can use
sudo ufw enable to turn on the uncomplicated firewall (UFW) on Raspberry Pi.Click to reveal answer
intermediate
How do you add your public SSH key to the Raspberry Pi to allow key-based login?
Copy your public key to the Raspberry Pi's
~/.ssh/authorized_keys file, for example using ssh-copy-id user@raspberrypi.Click to reveal answer
What file on the Raspberry Pi stores the list of allowed SSH public keys?
✗ Incorrect
The file
~/.ssh/authorized_keys contains the public keys allowed for SSH login.Which command disables password login for SSH on Raspberry Pi?
✗ Incorrect
Disabling password login requires editing
/etc/ssh/sshd_config and setting PasswordAuthentication no.What does the command
sudo ufw allow 22 do?✗ Incorrect
Port 22 is the default SSH port; this command allows SSH traffic through the firewall.
Why is it important to keep your private SSH key secure?
✗ Incorrect
The private key grants access; if stolen, attackers can log in without a password.
Which tool is commonly used as a simple firewall on Raspberry Pi?
✗ Incorrect
UFW is a user-friendly firewall tool often used on Raspberry Pi.
Explain how to set up SSH key authentication on a Raspberry Pi.
Think about creating keys, sharing the public one, and securing the server.
You got /3 concepts.
Describe the role of a firewall on a Raspberry Pi and how to enable it.
Consider how a firewall protects and how to control access.
You got /3 concepts.