Recall & Review
beginner
What is SSH tunneling (port forwarding)?
SSH tunneling is a way to securely send network traffic through an encrypted SSH connection. It forwards ports from your local machine to a remote machine or vice versa, protecting data from eavesdropping.
Click to reveal answer
beginner
What is the difference between local and remote port forwarding in SSH?
Local port forwarding sends traffic from your local machine to a remote server through SSH. Remote port forwarding sends traffic from the remote server back to your local machine.
Click to reveal answer
beginner
How do you create a local SSH tunnel to forward local port 8080 to remote port 80 on example.com?
Use the command: <br>
ssh -L 8080:localhost:80 user@example.com<br>This forwards your local port 8080 to port 80 on example.com securely.Click to reveal answer
beginner
What does the '-R' option do in SSH tunneling?
The '-R' option sets up remote port forwarding. It forwards a port from the remote server back to your local machine.
Click to reveal answer
beginner
Why is SSH tunneling useful in real life?
It helps you securely access services behind firewalls or on private networks. For example, you can safely browse a website on a remote server or access a database without exposing it publicly.
Click to reveal answer
Which SSH option is used for local port forwarding?
✗ Incorrect
The '-L' option forwards a local port to a remote destination.
What does remote port forwarding allow you to do?
✗ Incorrect
Remote port forwarding sends traffic from the remote server back to your local machine.
Which command forwards your local port 3306 to remote port 3306 on server.com?
✗ Incorrect
The '-L' option forwards local port 3306 to remote port 3306.
What is a common use case for SSH tunneling?
✗ Incorrect
SSH tunneling helps securely access services like databases behind firewalls.
Which port does SSH use by default?
✗ Incorrect
SSH uses port 22 by default.
Explain how to set up a local SSH tunnel to securely access a web server running on a remote machine.
Think about forwarding a local port to the remote web server port.
You got /4 concepts.
Describe the difference between local and remote port forwarding in SSH tunneling with an example for each.
Consider which side initiates the connection and which side receives forwarded traffic.
You got /3 concepts.