ssh multiple ports forwarding

If you want to use multiple ports forwarding simply specify all the forwards as ssh arguments

ssh -R 8081:host_A:80 -R 8082:host_B:80 user@host_C

What’s the plan?

– you will log in into host_C
– port 80 from host_A will be exposed as 8081 at host_C
– port 80 from host_B will be exposed as 8082 at host_C