Last active
December 19, 2017 17:11
-
-
Save gerardorf/7d89f39121d685b4a867b4a8122fe3c1 to your computer and use it in GitHub Desktop.
bastion ssh configuration. Add this config on ~/.ssh/config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bastion.gerardorf.org must include gerardorf-public-key in ~/.ssh/authorized_key