ssh Port tunneling


SSH can also be used to tunnel ports
Create a local port that connects to a remote host through a SSH connection to another host
      ssh ­L 12345:localhost:25 user@host

Any connection on the local port 12345 will in fact reach port 25 on the destination, through an encrypted tunne


Create a remote port that connects to a host through a SSH connection to localhos

           ssh ­R 4242:kernel.org:80 user@host
Any connection on the remote host port 4242 will in fact reach port 80 of kernel.org through an encrypted tunne

Using SSH tunnel connection as a SOCKS5 proxy

    ssh -qTN   -D   80 tonystz@intscan.org (windows机器)

   或者  ssh -qTfnN   -D   8086      用户名@远程ssh主机名

posted on 2011-08-07 11:21  Tonystz  阅读(129)  评论(0编辑  收藏  举报