• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Jonathan Dingman

Dad, Product Guy, WordPress, SEO, and TailwindCSS.

  • SEO
  • Google
  • Google Sheets
  • WordPress
  • About Jonathan

Jonathan DOT VC » Tech » How to setup an SSH tunnel to browse the web securely

How to setup an SSH tunnel to browse the web securely

June 8, 2013 by Jonathan Dingman

SSH tunnel on a Mac

This tutorial is aimed at people using OS X on a Mac, but could easily work for any other operating system.

ssh -D 8080 -f -C -q -N username@serverIP

If you have a non-standard SSH port, just add -p to the end of the command.

First, I setup this command as a /usr/bin command so I don’t have to remember it.

sudo nano -w /usr/bin/createtunnel
cntrl +x
y
enter
sudo chmod +x /usr/bin/createtunnel

This will allow you to just enter “createtunnel” at the command line on your computer and it will start the process.

After you run the command it will prompt you for your SSH password so you can login to your server. This is the first part of the process.

The second part is ensuring that your wifi device is using the proxy port that you just setup.

Next, go to your device and then go to Proxies. Then select SOCKS Proxy and enter the 8080 port which is part of the command above. You can adjust this port to be whatever you want it to be, I just use 8080 for simplicity.

SSH tunnel on a Mac

After you click OK, your connection will now be tunneling your traffic through your encrypted SSH connection.

If you have any comments or suggestions, please let me know in the comments below.

Related Posts:

  • accordion-mockup
    How Accordion UX Impacts SEO: Pros, Cons, and Best Practices
  • WordPress Tutorial: Using SSH to Install/Upgrade
    WordPress Tutorial: Using SSH to Install/Upgrade
  • openx-logo
    OpenX Advanced Targeting Using WordPress
  • argetina-waterfalls-rainbow
    How to Setup a VAST/VPAID Waterfall with VideoJS

Filed Under: Tech

Primary Sidebar

Jonathan "Jon" Dingman

Welcome to my little corner of the interwebz!

My name is Jonathan.

Recent Posts

  • [Humor] Giving Excel a September 10th rating.
  • Mastering Alphabetization in Google Sheets: A Step-by-Step Guide
  • 100% Free & Simple Full Site Caching at the Edge with Cloudflare
  • Leveraging Structured Data Schema.org Markup for Paginated eCommerce Category Pages
  • How Accordion UX Impacts SEO: Pros, Cons, and Best Practices
  • How to Create a Dropdown List in Google Sheets
  • Sparklines: The Pocket-Sized Warriors of Google Sheets for Quick Data Insights
  • Google Sheets and Data Analysis: Interpreting Zeroes
  • The Ultimate Guide to Dynamic Drop-Down Lists in Google Sheets
  • Google Sheets Best Practices: Perfecting Data Entry with Advanced Validation Techniques
  • Coloring By Numbers in Google Sheets: Making Zeros Disappear
  • 12 Easy to use Features of Google Analytics
  • Self-hosting WordPress: Looking at WordOps vs SlickStack
  • How I Setup a WordPress Cron Job Using AWS Lambda
  • Using Cloudflare, an Amazon Load Balancer, with Nginx and Fail2Ban
  • How to Automate WordPress Backups to Amazon S3 with a Bash Script
  • How to Track Light/Dark Mode in Google Analytics through Google Tag Manager
  • How to Track Ad Block Usage in Google Analytics through Google Tag Manager
  • How to Setup a VAST/VPAID Waterfall with VideoJS
  • How to Return an Empty Cell When the Value is Zero in Google Sheets

Friends

  • Dre is awesome
  • Rareform – Best Upcycled and Recycles Bags

Powered by DigitalOcean
Copyright © 2025

  • Sitemap
  • Privacy
  • Terms