SSH Port Forwarding can be useful in instances when you don't have access to a server/service/device, but you have access to a server that has access to the desired server/service/device.
You -> Server1 (10.0.0.1) -> DesiredWebServer(18.104.22.168)
Due to firewalls, or routing, you can't reach the Desired Web Server, but you have SSH access to Server1.
Using SSH Port Forwarding, you can access Desired Web Server in a transparent manner.
Build SSH Tunnel:
ssh firstname.lastname@example.org -L 2000:22.214.171.124:80 -N
Or to run the SSH tunnel in the background:
ssh email@example.com -L 2000:126.96.36.199:80 -N -f
The format of the command is:
ssh yourusernametoServer1@Server1IPorHostname -L LocalPort:DesiredWebServerIPorHostname:RemotePort -N
After running the command, you can now browse to http://localhost:2000 on your computer and reach DesiredWebServer.
You can use this for any service, I just chose HTTP since it was simple. One issue that can arise when doing this for HTTP is that the HTML generated by the web server may contain absolute paths in the links it sends back. If this is the case, you'll have to constantly change the URL from whatever the hardcoded URI is to localhost:2000