linux open ssh tunnel code example
Example 1: ssh open tunnel command line
# from localhost:13306 to remote 3306 via tunnel
ssh -L 33066:localhost:3306 remotemachine
Example 2: how to make tunnel in linux ubuntu
$ ssh -f -N [email protected] -L 8080: server1.example.com:3000