SSH Tunneling

March 21, 2013

Have you ever launched a new site and found that your ISP, or your router, or your computer, or who-knows-what has cached the DNS and just won’t refresh? I do on a pretty frequent basis. I get around it with SSH Tunneling.

I tunnel into my webserver on the other side of the country to use it’s ISP to fetch me the page and show me whether or not the domain provider has pushed the new DNS settings.

It’s also very helpful if you are working on a live website and don’t want visitors to see the latest content until it’s perfect. What you can do is use the PHP $_SERVER variable (or your language’s variant) in a conditional to limit the view to just your location. You can then use the tunnel to check and make sure whatever you do in the back-end doesn’t make it to the front end until completion.

You can read more about this here and use their tutorial to get your tunnel going. I prefer to use Firefox for this because it utilizes its own proxy settings. Chrome uses your computer’s proxy settings so your entire computer’s Internet connection will route through your server. Doing it in Firefox means you may view the site through your server and then use Chrome to see how it looks from your location.

Happy Tunneling!

Comments are closed