Creating a simple vps.
Here we will connect to the telnet server on the remote host.
ssh -L 5000:127.0.0.1:23 itmission.org
netstat command will give the output for nestat -anp|grep 5000, once the tunnel is setup, we can use simple telnet command to telnet to the server.
telnet localhost 5000
laptop# ssh -L 110:mailhost:110 -l user -N mailhost
(Naturally, substitute user with your username, and mailhost with your mail server's name or IP address).