Skip to content

Instantly share code, notes, and snippets.

@aowongster
Created February 15, 2017 19:01
Show Gist options
  • Save aowongster/3733460d9d6277fce8ba33fc4031f7bb to your computer and use it in GitHub Desktop.
Save aowongster/3733460d9d6277fce8ba33fc4031f7bb to your computer and use it in GitHub Desktop.
autossh command
#!/bin/bash
# create ssh proxy server
# http://www.commandlinefu.com/commands/view/1060/create-an-ssh-socks-proxy-server-on-localhost8000-that-will-re-start-itself-if-something-breaks-the-connection-temporarily
autossh -f -M 20000 -N -D 8000 some_ssh_host
# then setup a socks proxy for your browser to localhost:8000
# to browse securely!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment