-
-
Save movii/f4a8e8229fa86f6ab6e84293de87703d to your computer and use it in GitHub Desktop.
SSH config for jump 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 | |
User ubuntu | |
HostName 12.345.67.89 | |
IdentityFile /path_to/jump/pem_file | |
Host remote-server | |
User ubuntu | |
Hostname remote.server.domain | |
IdentityFile /path_to/remote/pem_file | |
ForwardAgent yes | |
ProxyCommand ssh jump -W %h:%p | |
Host remote_server_tunnel | |
HostName 12.345.67.89 | |
User ubuntu | |
ForwardAgent yes | |
IdentityFile /path_to/jump/pem_file | |
LocalForward 2222 remote.server.domain:22 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment