Setup VPN with Amazon EC2

  1. Setup the desired EC2 with SSH Server running which will be known as remote-host.
  2. On your Desktop, ssh to the EC2 using: ssh -D 8080 username@remote-host, you will be prompted for password of remote-host. Enter it. ORssh -D 8080 -I “private-key.pem” username@remotehost.
  3. Now go to your browser’s proxy settings, and configure it to use a SOCKS proxy with host name and port 8080
  4. Or if you are on a MAC, you can configure the SOCKS proxy in system preferences.
  5. Open any website, this now goes through the remote machine.



Leave a Reply

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

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

Google+ photo

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

Twitter picture

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

Facebook photo

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

Connecting to %s