Created
February 15, 2017 19:01
-
-
Save aowongster/3733460d9d6277fce8ba33fc4031f7bb to your computer and use it in GitHub Desktop.
autossh command
This file contains 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
#!/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