Skip to content

Instantly share code, notes, and snippets.

@colehocking
Created October 8, 2018 17:18
Show Gist options
  • Select an option

  • Save colehocking/a688d4f3bf06ed8293dc01cbaa1cbddd to your computer and use it in GitHub Desktop.

Select an option

Save colehocking/a688d4f3bf06ed8293dc01cbaa1cbddd to your computer and use it in GitHub Desktop.
Proxy port 8000 for localhost browser access
#/bin/bash
# Make your argument: '<user>@<server>'
USR_AT_SRVR="$1"
ssh -D 8000 -C -N ${USR_AT_SRVR}
# Now just visit your server in a web browser on port 8000 and you should have localhost access via ssh!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment