Skip to content

Instantly share code, notes, and snippets.

@brunneis
Last active May 11, 2018 16:03
Show Gist options
  • Save brunneis/a7c768a9b96274384f452a51b771e030 to your computer and use it in GitHub Desktop.
Save brunneis/a7c768a9b96274384f452a51b771e030 to your computer and use it in GitHub Desktop.
Create SSH proxy (SOCKS)
# f -> Requests ssh to go to background just before command execution
# C -> Requests compression of all data
# q -> Quiet mode
# N -> Do not execute a remote command
# p -> Port to connect to on the remote host
sudo ssh -D 1984 -f -C -q -N -p 22 username@servername
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment