Create an SSH Tunnel

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

In this learning activity, you will need to create an SSH tunnel that will permit `Client1` to access `Server2`’s web content via localhost port 8080.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create the SSH Tunnel

While logged into Client1:

ssh -L 8080:10.0.1.20:80 cloud_user@10.0.1.10

View the `Server2` Web Content through the Tunnel

Verify the SSH tunnel is working by curling the web content locally:

curl localhost:8080

Additional Resources

Client1 (10.0.1.10) is unable to directly connect to Server2 (10.0.1.20) due to firewall rules that are in place. You will need to construct an SSH tunnel through Server1 (10.0.1.10) to view the web content being served by Server2.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?