Challenge - 5 Problems
Raspberry Pi Security Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
What is the output of this SSH key generation command?
You run the command
ssh-keygen -t ed25519 -C "pi@raspberry" on your Raspberry Pi. What will be the expected output message after successful key creation?Raspberry Pi
ssh-keygen -t ed25519 -C "pi@raspberry"Attempts:
2 left
💡 Hint
The command specifies the ed25519 key type, which is modern and supported.
✗ Incorrect
The command
ssh-keygen -t ed25519 generates an Ed25519 key pair. The output confirms the key type, file locations, fingerprint, and shows a randomart image. Options A, B, and C are incorrect because A shows a permission denied error, B shows RSA keys, and C shows an error that does not occur for ed25519.❓ Predict Output
intermediate1:30remaining
What is the effect of this UFW firewall command on Raspberry Pi?
You run
sudo ufw allow 22/tcp on your Raspberry Pi. What is the resulting firewall behavior?Raspberry Pi
sudo ufw allow 22/tcpAttempts:
2 left
💡 Hint
Port 22 is the default SSH port and TCP is the protocol used by SSH.
✗ Incorrect
The command
sudo ufw allow 22/tcp opens port 22 for incoming TCP connections, enabling SSH access through the firewall. Option C is the opposite, C disables firewall which is not done here, and D is about UDP which is incorrect for SSH.🔧 Debug
advanced2:30remaining
Why does this SSH connection fail after disabling password authentication?
You disabled password authentication by setting
PasswordAuthentication no in /etc/ssh/sshd_config but now cannot connect via SSH. What is the most likely cause?Raspberry Pi
1. Edit /etc/ssh/sshd_config 2. Set PasswordAuthentication no 3. Restart ssh service 4. Try to SSH without an SSH key Connection fails.
Attempts:
2 left
💡 Hint
Disabling password authentication requires key-based login to be set up first.
✗ Incorrect
When password authentication is disabled, SSH login requires a valid SSH key. If the public key is not added to
~/.ssh/authorized_keys, login fails. Option B is false because SSH supports keys, A might block but is unrelated to this config change, and D is unnecessary as restarting sshd is enough.🧠 Conceptual
advanced1:30remaining
What is the main security benefit of using SSH keys over passwords on Raspberry Pi?
Why is using SSH keys considered more secure than passwords for accessing your Raspberry Pi remotely?
Attempts:
2 left
💡 Hint
Think about how passwords can be guessed but keys cannot.
✗ Incorrect
SSH keys use strong cryptography making them resistant to brute-force attacks, unlike passwords which can be guessed or cracked. Option D is false because keys require possession of the private key, C is incorrect as passwords are hashed, and D is unrelated.
❓ Predict Output
expert3:00remaining
What is the number of rules after these UFW commands?
You run these commands on your Raspberry Pi:
sudo ufw reset sudo ufw default deny incoming sudo ufw default allow outgoing sudo ufw allow 22/tcp sudo ufw allow 80/tcp sudo ufw enableHow many active rules will
sudo ufw status numbered show?Raspberry Pi
sudo ufw reset sudo ufw default deny incoming sudo ufw default allow outgoing sudo ufw allow 22/tcp sudo ufw allow 80/tcp sudo ufw enable sudo ufw status numbered
Attempts:
2 left
💡 Hint
Count only the explicit allow rules added after reset.
✗ Incorrect
After reset, the firewall has no rules. Setting default policies does not add numbered rules. Adding
allow 22/tcp and allow 80/tcp adds 2 rules. So ufw status numbered shows 2 rules.