Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RP-3/ce1801f1ca7ced520fd398fef549a8c1 to your computer and use it in GitHub Desktop.
Save RP-3/ce1801f1ca7ced520fd398fef549a8c1 to your computer and use it in GitHub Desktop.
# On remote, install and start tinyProxy
# Note: By default, tinyproxy listens on port 8888 and only accepts local connections
sudo apt-get install tinyproxy
# On local,
ssh -L 3128:localhost:8888 -i ~/.ssh/some-private-key.pem ubuntu@your-remote-machine-ip -N
# Then configure your OS's proxy settings to use localhost:3128
# Notes
ssh #SSH\
-i ~/.ssh/some-private-key.pem #Using this keyfile \
ubuntu@your-remote-machine-ip #to this machine \
-L 3128:localhost:8888 #and with the established connection, bind this port@thisIP to that port in the remote
# 3128 is chosen arbitrarily, use whatever you want
# `ubuntu` is chosen because in most tutorials, that's your default username for a fresh install of ubuntu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment