Jul 09









1. Generate your public/private keys using ssh-keygen.  Don’t enter a passphrase and just hit enter for the defaults on the rest of the questions asked.

ssh-keygen -t rsa

2. Now copy the id_rsa.pub to the .ssh directory of the remote host you want to logon to as authorized_keys2 .

LINUX:

scp /home/username/.ssh/id_rsa.pubroot@crazyedy.com:/home/username/.ssh/authorized_keys2

MAC:

scp /Users/username/.ssh/id_rsa.pubroot@crazyedy.com:/Users/username/.ssh/authorized_keys2

3. You should now be able to type the following command to get into the box without using a password:

ssh root@crazyedy.com

  1. 4. Now type the following command into the terminal:

ssh -D 2020 -fN username@crazyedy.com

This will setup the ssh tunnel.

  1. 5. Now you have to setup your browser, say “Firefox” to route all traffic including dns traffic through your new ssh tunnel you just setup.  Open up Firefox and go to preferences -> Advanced -> Network and then click the “Settings” tab like the following example:
  1. 6. You should then be able to go to the following address:

http://www.noreply.org

and it should show you the ip address from which you are coming from, which should be your new ssh tunnel ip address.

firefoxsshtunneling.jpg

Leave a Reply

preload preload preload