Skip to content

Instantly share code, notes, and snippets.

@yannlugrin
Forked from Farzy/SSH Proxy.txt
Created December 15, 2009 10:07
Show Gist options
  • Save yannlugrin/256827 to your computer and use it in GitHub Desktop.
Save yannlugrin/256827 to your computer and use it in GitHub Desktop.
Host srv1
Hostname srv1.client.fr
User root
ProxyCommand ssh firewall nc %h %p
Host srv2
Hostname srv2.client.fr
User root
ProxyCommand ssh firewall nc %h %p
Host firewall
Hostname firewall.client.fr
User root
# Some port forwarding
LocalForward 10389 srv1:389
LocalForward 11389 srv2:389
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment