Skip to content

Instantly share code, notes, and snippets.

@manugarri
Forked from gerardorf/config
Created December 19, 2017 17:11
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 manugarri/b6a163bbc4c47ecd8a4304a208764f1a to your computer and use it in GitHub Desktop.
Save manugarri/b6a163bbc4c47ecd8a4304a208764f1a to your computer and use it in GitHub Desktop.
bastion ssh configuration. Add this config on ~/.ssh/config
Host *.gerardorf.org !bastion.gerardorf.org
User admin
IdentityFile ~/.ssh/gerardorf-private-key
ProxyCommand ssh -W %h:%p admin@bastion.gerardorf.org
Host bastion.gerardorf.org
Hostname XXX.XXX.XXX.XXX
User admin
IdentityFile ~/.ssh/gerardorf-private-key
ForwardAgent yes
@manugarri
Copy link
Author

config to use a bastion as an ssh tunnel for an internal network domain.

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