Skip to content

Instantly share code, notes, and snippets.

@tianchaijz
Forked from vincentbernat/gist:4391597
Last active August 29, 2015 14:09
Show Gist options
  • Select an option

  • Save tianchaijz/7015e69c9cafefae89a3 to your computer and use it in GitHub Desktop.

Select an option

Save tianchaijz/7015e69c9cafefae89a3 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment