From IT Mission Linux Tips, Hacks, Tutorials, Howtos - Itmission.org

Main: Ssh-port-forwarding

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).

Retrieved from http://www.itmission.org/Main/Ssh-port-forwarding
Page last modified on October 27, 2007, at 03:53 AM