Skip to content

Instantly share code, notes, and snippets.

@luiscape
Created June 28, 2016 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luiscape/6607812e119bd2d1a74c41f5378b560b to your computer and use it in GitHub Desktop.
Save luiscape/6607812e119bd2d1a74c41f5378b560b to your computer and use it in GitHub Desktop.
Example SSH config file.
Host intermediary
User foobar
Hostname 100.100.121.33
Port 14500
ServerAliveInterval 60
ServerAliveCountMax 30
Host target
User foobar
Hostname 100.100.232.44
Port 22
ForwardAgent yes
LocalForward 9000 localhost:80
ProxyCommand ssh -W %h:%p intermediary
ServerAliveInterval 60
ServerAliveCountMax 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment