Created
May 15, 2019 23:29
-
-
Save RP-3/ce1801f1ca7ced520fd398fef549a8c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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