Skip to content

Instantly share code, notes, and snippets.

@vincentbernat
Created December 27, 2012 20:19
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save vincentbernat/4391597 to your computer and use it in GitHub Desktop.
Save vincentbernat/4391597 to your computer and use it in GitHub Desktop.
`socat` as an SSH reverse proxy (or anything TCP-based)
local$ socat TCP-LISTEN:2222,bind=127.0.0.1,reuseaddr,fork TCP-LISTEN:2223,reuseaddr
local$ ssh -p 2222 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no localhost
remote$ socat TCP:10.0.2.2:2223 TCP:127.0.0.1:22
@vincentbernat
Copy link
Author

Also possible by using ProxyCommand:
vincentbernat/zshrc@b49300a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment