Challenge - 5 Problems
SSH Connection Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
What is the output of this SSH command?
You run the command
ssh -v user@192.168.1.10 to connect to a server. Which of the following lines will you see in the verbose output indicating a successful key exchange?Linux CLI
ssh -v user@192.168.1.10Attempts:
2 left
💡 Hint
Look for messages that confirm authentication success in verbose SSH output.
✗ Incorrect
The line 'debug1: Authentication succeeded (publickey).' shows that the SSH client successfully authenticated using a public key. Other options indicate errors or failures.
🧠 Conceptual
intermediate1:30remaining
Which SSH option disables strict host key checking?
You want to connect to a new SSH server without being prompted to confirm the server's fingerprint. Which SSH option disables this prompt?
Attempts:
2 left
💡 Hint
This option controls whether SSH asks to confirm the server's fingerprint.
✗ Incorrect
The option '-o StrictHostKeyChecking=no' disables the prompt asking to confirm the server's fingerprint, allowing automatic connection.
🔧 Debug
advanced2:00remaining
Why does this SSH command fail with 'Permission denied'?
You run
ssh user@host but get Permission denied (publickey,password). error. Which of the following is the most likely cause?Attempts:
2 left
💡 Hint
Consider what authentication methods the server accepts and what keys you have.
✗ Incorrect
The error means the server rejected both public key and password authentication. Usually, this happens if the server requires a public key but the client has none configured.
🚀 Application
advanced2:00remaining
How to copy a file securely using SSH?
You want to copy a file named
report.txt from your local machine to the remote server server.example.com under the directory /home/user/docs. Which command correctly does this?Attempts:
2 left
💡 Hint
Think about which command is designed to copy files over SSH.
✗ Incorrect
The
scp command securely copies files over SSH. Option A tries to run a copy command on the remote server but does not transfer the file. Option A copies SSH keys, not files. Option A can copy files but requires rsync installed and configured.💻 Command Output
expert2:30remaining
What is the output of this SSH command with a custom port?
You run
ssh -p 2222 user@host but get the error message. Which option shows the exact error you will see if port 2222 is closed on the server?Linux CLI
ssh -p 2222 user@hostAttempts:
2 left
💡 Hint
Think about what happens when the port is closed but the host is reachable.
✗ Incorrect
If the port is closed, SSH cannot connect and shows 'Connection refused'. Other errors indicate DNS issues, authentication failure, or timeout.