PDA

View Full Version : [Tut] Using Putty for SSH Tunneling [/Tut]



rareyush
01-30-2011, 05:22 AM
Ok so here i am again with yet another tutorial :). I have been asked a lot of times by many people to make a tutorial on

how to use putty. So, here it is :)

Putty is a SSH and Telnet client which i use to connect to a remote server and also for SSh tunneling and various other purposes.

In this Tutorial am going to show you how to use putty to connect to a remote server and then use it as a proxy to get anonymous on the web :D

Requirements:

Putty and credentials of a remote server with SSH Enabled.


Procedure:

Black]Step 1:

Open Putty. Goto the sessions tab on the LHS.

Here, Enter the IP address of the remote host along with the SSH port number.

In our case the port number is default ie. 22 and The remote Ip am going to connect to is : 174:xx:xx:156

It would look something like this:

http://img10.imageshack.us/img10/1656/75972749.jpg


Black]Step 2:

Now, on the LHS goto SSH and select Tunnels.

It should look something like this:
http://img708.imageshack.us/img708/3083/72161302.jpg


Black]Step 3:

In the Source port enter an open port on the remote server to which you are going to connect through.

In our case it is 1234.

Also select "Dynamic".

It should look something like this:

http://img341.imageshack.us/img341/2194/53536933.jpg

Black]Step 4:

Click on Add button.

http://img27.imageshack.us/img27/2007/27327677.jpg

Black]Step 5:

Goto session on the LHS

http://img28.imageshack.us/img28/8087/89887518.jpg

Black]Step 6:

Enter a name for the configuration. Then Click "Save". And then click "Open".

It should look something like this:
http://img413.imageshack.us/img413/4056/88426649.jpg




Black]Step 7:

A window likehttp://img413.imageshack.us/img413/6384/58713210.jpg

Black]Step 8:

Enter the login credentials for the remote server.

On succesfull login, you can view something like this:
http://img823.imageshack.us/img823/7419/11923827.jpg
http://img193.imageshack.us/img193/6082/18674950.jpg


Black]Step 9:

Now, We are succesfully connected to the remote machine via putty :) :oui: :oui:

Now, We have to setup our firefox or any other browser for that purpose to connect to internet tunneling through our created connection.

For Mozilla :

FOr Mozilla the configuration would be like this:

http://img695.imageshack.us/img695/883/68963897.jpg
http://img820.imageshack.us/img820/4343/60290842.jpg


Black]Step 10:

This is all we have to do. :oui: :oui:

And yea before you surf anymore just go though ip-adress.com to to verify your public ip whether you actually are anonymous or not.

In our case
http://img407.imageshack.us/img407/4430/77515200.jpg


See i told you this is so simple to do !!!

If you dun feel this was useful then let me know. Please don't flame me as i have put in decent bit of time to make this tut :)

Any Doubts then post over here .. Will try to solve them.

Let me know if i missed out something.

Thanks for reading all this shit :P Will be coming up with more tuts in the future. Stay tuned ;)