Sunday, July 27, 2008

Browsing using SSH (Dynamic Port Forwarding)

SSH Dynamic Port Forwarding is a way of opening a SOCK 4/5 proxy server on your local computer and forwarding all of the data to an ssh server your are running someplace else on the network.

Sometimes you are on an untrusted network, but have to use protocols that aren't completely secure and you don't want someone else on the local lan sniffing what you are doing.

By using ssh dynamic port forwarding you can create an encrypted tunnel to a trusted network so others have a harder time sniffing passwords.

The other use of ssh dynamic port forwarding : Suppose u have a lan connection and u are not able to use internet due to some technical problem using this technique you can easily connect to internet.
=====================================================================================

1. FOR LINUX MECHINE

CODE:

ssh -D 1020 username@ipaddress

This Command will connect to remote system and start Listening on your localhost at port 1020 .

Here username is login username of remote machine.

Now open browser go to connection setting

Select Manual proxy Configuration

In Sock host put localhost and port 1020

and you are Done !!!

Test This at Home Network

Open terminal Run Command

ssh -D 1020 username@localhost

and do the browser setting as above mention .....

====================================================================================

2. FOR WINDOWS MACHINE

Download Putty and run it

Select SSH

Enter the remote ip

In Category Section expand SSH

Go to ssh->tunnel

Enter Source Port 1020 select Dynamic

And Click on Open.

Enter login name and password.

Now open browser go to connection setting

Select Manual proxy Configuration

In Sock host put localhost and port 1020

And you are Done !!!

No comments: