tunnel over ssh

in Linux CLI:

# ssh tets@example.com -ND 8088
tets@example.com: user and domain
-N Do not execute a remote command. This is useful for just forwarding ports (protocol version 2 only).
-D  portSpecifies a local “dynamic” application-level port forwarding. This works by allocating a socket to listen to port on the local side, and whenever a connection is made to this port, the connection is forwarded over the secure channel, and the application protocol is then used to determine where to connect to from the remote machine. Currently the SOCKS4 protocol is supported, and ssh will act as a SOCKS4 server. Only root can forward privileged ports. Dynamic port forwardings can also be specified in the configuration file.

in putty :



Leave a Reply

Your email address will not be published. Required fields are marked *