本地机器开端口,收到的数据转发给远端
ssh -L 8080:localhost:80 -N user@remote-server
远程机器开端口,收到的数据转发给本机
ssh -R 8080:localhost:80 user@example.com -N
ssh -D 5500 user@example.com -N
说明