Skip to content

Instantly share code, notes, and snippets.

@lucasgonze
Created October 1, 2014 17:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucasgonze/9880502a396bcd113108 to your computer and use it in GitHub Desktop.
Save lucasgonze/9880502a396bcd113108 to your computer and use it in GitHub Desktop.
Tunnel incantation
When I'm on an open wifi network, I use an SSH tunnel to encrypt my traffic. Here's my script:
#!/bin/bash
ssh -D 9999 user@my-ssh-host.com "
echo '
****
Establishing ssh tunnel...
Now open
Firefox->
Preferences->
Advanced->
Network->
Connection->
Settings->
Manual->
SOCKS host->
localhost:9999
(And leave this window open!)
***
'
echo 'Press ENTER to terminate this tunnel'
read
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment