ssh Port tunneling

来源:互联网 发布:数据库的核心 编辑:程序博客网 时间:2024/05/20 19:29

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主机名

原创粉丝点击