Skip to content

Instantly share code, notes, and snippets.

@seahrh
Created January 18, 2022 02:43
Show Gist options
  • Save seahrh/61b2a5729dc84390ff476c3f0f424160 to your computer and use it in GitHub Desktop.
Save seahrh/61b2a5729dc84390ff476c3f0f424160 to your computer and use it in GitHub Desktop.
ssh config for normal host and bastion host
# ~/.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