Skip to content

Instantly share code, notes, and snippets.

@sai92messy
Last active June 18, 2018 15:34
Show Gist options
  • Save sai92messy/fe11d8a85bbe5b8ec6d0cc412364a0be to your computer and use it in GitHub Desktop.
Save sai92messy/fe11d8a85bbe5b8ec6d0cc412364a0be to your computer and use it in GitHub Desktop.
SSH config for jump host
# ~/.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