Challenge - 5 Problems
SSH Mastery Badge
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 command?
You run this command on your local machine to connect to a Raspberry Pi with IP 192.168.1.10 as user 'pi'. What will be the output if the connection is successful?
Raspberry Pi
ssh pi@192.168.1.10Attempts:
2 left
💡 Hint
Think about what happens right after you run ssh with a correct IP and username.
✗ Incorrect
When you connect successfully, SSH asks for the user's password to authenticate. So you see the prompt for the password.
❓ Predict Output
intermediate2:00remaining
What error occurs when SSH server is not running?
You try to connect to your Raspberry Pi with SSH but the SSH server is not running. What error message will you see?
Raspberry Pi
ssh pi@192.168.1.10Attempts:
2 left
💡 Hint
If the server is off or not listening on port 22, the connection is refused.
✗ Incorrect
Connection refused means the server is reachable but no service is listening on the SSH port.
🔧 Debug
advanced2:00remaining
Why does this SSH command fail with 'Permission denied'?
You run this command to connect to your Raspberry Pi but get 'Permission denied' error. What is the most likely cause?
Raspberry Pi
ssh pi@192.168.1.10 # You enter the wrong password multiple times.
Attempts:
2 left
💡 Hint
Permission denied usually means authentication failed.
✗ Incorrect
If the password is wrong or the user is not allowed to login via SSH, you get 'Permission denied'.
🧠 Conceptual
advanced2:00remaining
What is the purpose of SSH key pairs in remote access?
Why do we use SSH key pairs instead of passwords for connecting to a Raspberry Pi remotely?
Attempts:
2 left
💡 Hint
Think about security and convenience in remote login.
✗ Incorrect
SSH keys provide a secure way to authenticate without sending passwords, making connections safer and easier.
❓ Predict Output
expert2:00remaining
What is the output of this SSH command with port forwarding?
You run this command to forward your local port 8080 to Raspberry Pi's port 80. What will be the output if successful?
Raspberry Pi
ssh -L 8080:localhost:80 pi@192.168.1.10
Attempts:
2 left
💡 Hint
Port forwarding does not change the initial password prompt.
✗ Incorrect
Even with port forwarding, SSH first asks for the password to authenticate the user.