xxxxxxxxxx
sudo nano /etc/ssh/sshd_config
Change "GatewayPorts yes"
ssh -R 80:127.0.0.1:80 root@203.0.113.1
xxxxxxxxxx
# forwards trafic from 127.0.0.1:8888 to intra.example.com:80 trhough gw.example.com
ssh -L 127.0.0.1:8888:intra.example.com:80 gw.example.com
xxxxxxxxxx
ssh -L <choice of port>:0.0.0.0:<running server port> -p <machine-port> <machine-ip>