Skip to content

Instantly share code, notes, and snippets.

@mscalora
Created December 5, 2016 17:35
Show Gist options
  • Save mscalora/e7577fbeecddf5773a570618d0ad332b to your computer and use it in GitHub Desktop.
Save mscalora/e7577fbeecddf5773a570618d0ad332b to your computer and use it in GitHub Desktop.
# Simple "jump box" scenario
# For any user with the same userid on all three systems
# jump from source.example.com to dest.example.com via jump.example.com
# using default ports
# using local keys (e.g. ~/.ssh/id_rsa on source.example.com)
#
# English: ssh from source.example.com to dest.example.com when dest.example.com is not
# using a ssh
Host jump-to-dest
Hostname dest.example.com
ForwardAgent yes
ProxyCommand ssh -W %h:%p jump.example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment