Skip to content

Instantly share code, notes, and snippets.

@mknabe
Created March 21, 2016 16:14
Show Gist options
  • Save mknabe/24619708fe1076ca158e to your computer and use it in GitHub Desktop.
Save mknabe/24619708fe1076ca158e to your computer and use it in GitHub Desktop.
Set up ssh proxy for Stg
  1. Run the following shell script
  2. Open System Preferences
  3. Click Advanced...
  4. Go to the Proxies tab
  5. Select SOCKS Proxy
  6. Enter 127.0.0.1 as the host and 2001 as the port
  7. You'll need to add the necessary IPs to your hosts file

There are also instructions in the following article for setting this up just in Firefox

https://www.mikeash.com/ssh_socks.html

#!/bin/bash
ssh -D 2001 -i ~/.ssh/rsa_key user@host.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment