Challenge - 5 Problems
SSH Tunnel Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
What is the effect of this SSH command?
You run this command on your local machine:
What does this command do?
ssh -L 8080:internal.server.com:80 user@remotehost
What does this command do?
Attempts:
2 left
💡 Hint
Remember that -L means local port forwarding from your machine.
✗ Incorrect
The -L option forwards a local port (8080) to a destination (internal.server.com:80) via the SSH server (remotehost).
💻 Command Output
intermediate2:00remaining
What output does this SSH reverse tunnel command produce?
You run this command:
What does this command do?
ssh -R 9090:localhost:3000 user@remotehost
What does this command do?
Attempts:
2 left
💡 Hint
The -R option creates a reverse tunnel from remotehost to your local machine.
✗ Incorrect
The -R option forwards a port on the remote server (9090) back to a port on your local machine (3000).
🔧 Debug
advanced2:00remaining
Why does this SSH tunnel command fail with 'bind: Address already in use'?
You run:
But get the error:
What is the most likely cause?
ssh -L 8080:localhost:80 user@remotehost
But get the error:
bind: Address already in use
What is the most likely cause?
Attempts:
2 left
💡 Hint
The error mentions 'bind' which relates to local port usage.
✗ Incorrect
The error means your local machine cannot bind to port 8080 because it is already in use.
🧠 Conceptual
advanced2:00remaining
Which SSH option allows dynamic port forwarding?
You want to create a SOCKS proxy using SSH. Which option should you use?
Attempts:
2 left
💡 Hint
Dynamic forwarding creates a proxy that can handle many ports dynamically.
✗ Incorrect
The -D option sets up a dynamic SOCKS proxy on the local machine.
🚀 Application
expert3:00remaining
How to securely access a web server behind a firewall using SSH tunneling?
You have a web server running on port 80 inside a private network. You can SSH into a gateway server in that network but cannot access the web server directly. Which SSH command lets you access the web server from your local browser at http://localhost:8080?
Attempts:
2 left
💡 Hint
You want to forward a local port to the internal web server through the gateway.
✗ Incorrect
Local forwarding (-L) forwards your local port 8080 to the internal web server's port 80 via the gateway.