The other week I found myself up at 2am in Canada setting up a VPN between my home computer (running Ubuntu) in Seattle and my laptop
And then I remembered this command:
Pointed my browser’s connection settings to SOCKS proxy with server as
localhost and port at
8080 and BOOM, was able to access my Seattle home’s router’s config page from Canada. I’ve found this trick useful for all sorts of things, typically for one-offs where I need to access a website from the US while in Canada.
Another useful command for when you need to connect to any given port on a remote server is the following: