how to make tunnel in linux ubuntu

C++
$ ssh -f -N [email protected] -L 8080: server1.example.com:3000

Source

Also in C++: