Skip to content

Instantly share code, notes, and snippets.

@gerardorf
Last active December 19, 2017 17:11
Show Gist options
  • Save gerardorf/7d89f39121d685b4a867b4a8122fe3c1 to your computer and use it in GitHub Desktop.
Save gerardorf/7d89f39121d685b4a867b4a8122fe3c1 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 [email protected]
Host bastion.gerardorf.org
Hostname XXX.XXX.XXX.XXX
User admin
IdentityFile ~/.ssh/gerardorf-private-key
ForwardAgent yes
@gerardorf
Copy link
Author

bastion.gerardorf.org must include gerardorf-public-key in ~/.ssh/authorized_key

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