Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save midnight-wonderer/dcac62b6392ee531e88a933e7b9399b7 to your computer and use it in GitHub Desktop.
Save midnight-wonderer/dcac62b6392ee531e88a933e7b9399b7 to your computer and use it in GitHub Desktop.
Double-hop SSH
# start session
ssh-agent $SHELL
ssh-add ./destination-key
ssh -i ./intermediate-key -A -t user@intermediate.example.com ssh -A user@destination.example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment