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 hostssh 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@ints
或者 ssh -qTfnN
-D 8086 用户名@远程ssh主机名