Skip to content

Instantly share code, notes, and snippets.

@movii
Forked from sai92messy/config
Created June 18, 2018 15:34
Show Gist options
  • Save movii/f4a8e8229fa86f6ab6e84293de87703d to your computer and use it in GitHub Desktop.
Save movii/f4a8e8229fa86f6ab6e84293de87703d 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