Port Forwarding using ssh


# forward port 9876 on the local host to port 8080 on the target host:
ssh -L 9876:target_host:8080 userid@target_host
 
# Enable remote login on windows machine by tunnelling to linux vm:
ssh -g -L 22:192.168.80.130:22 ccarddev@192.168.80.130