Created
January 18, 2022 02:43
-
-
Save seahrh/61b2a5729dc84390ff476c3f0f424160 to your computer and use it in GitHub Desktop.
ssh config for normal host and bastion host
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
# ~/.ssh/config | |
Host jump | |
HostName <hostname> | |
User <username> | |
IdentityFile ~/.ssh/id_rsa | |
Host <hostname> | |
HostName <hostname> | |
User <username> | |
IdentityFile ~/.ssh/id_rsa | |
ProxyCommand ssh jump -W %h:%p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment