Tunneling by Example

ssh -g -L 8888:192.168.1.135:3389 localhost

I am saying on my localhost(any Linux box) , i want the port 8888 to be listening only to incoming connections to 192.168.1.135 .

So if anyone connects to my localhost on port 8888, my localhost will forward the connection to 192.168.1.135 on port 3389.

Port 3389 is the Windows RDP port number, so the example above is an rdp connection to the windows box 192.168.1.135.

So the connection would look like this below

where MyWin is the localhost

rdp.PNG

 

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s