0
0
Raspberry Piprogramming~5 mins

Securing Raspberry Pi (SSH keys, firewall) - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
A/etc/ssh/ssh_config
B~/.ssh/authorized_keys
C~/.ssh/id_rsa
D/etc/passwd
Which command disables password login for SSH on Raspberry Pi?
Assh-keygen -p
Bsudo ufw disable
Csudo systemctl stop ssh
DEdit /etc/ssh/sshd_config and set PasswordAuthentication no
What does the command sudo ufw allow 22 do?
ADisables the firewall
BBlocks SSH connections
CAllows SSH connections through the firewall
DEnables the firewall
Why is it important to keep your private SSH key secure?
ABecause anyone with it can access your Raspberry Pi
BBecause it contains your password
CBecause it is stored on the Raspberry Pi
DBecause it expires quickly
Which tool is commonly used as a simple firewall on Raspberry Pi?
AUFW (Uncomplicated Firewall)
Biptables
Cfail2ban
DWireshark
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.