SSH Remote Port Forwarding is a method of securely accessing a computer over a network by redirecting traffic from one port to another. It is a type of tunneling that allows users to securely access resources located on a remote machine, such as a web server or database server, from a local machine.
In this method, the remote machine is the host, and the local machine is the client. The host machine will listen for incoming connections on a specific port, and the client machine will forward the traffic from that port to another port on the remote machine, allowing the user to access the remote resources securely.
Here is the testbed for our demonstartion purpose - Two VMs having SSH connection between them, No other ports are allowed between these two hosts. The Oracle VM is running nginx service on non-standard port 3000. AWS VM listens to port 8080. For our test AWS VM request localhost:8080 and this request is redirected over SSH tunnel to port 3000 on Oracle VM which in turn return Oracle Linux Nginx sp