Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am colinangel on github.
  • I am colinangel (https://keybase.io/colinangel) on keybase.
  • I have a public key ASAdsBdnMvNScpZIC9gEt8qB6RqLca1IXJUgXWprYITq2wo

To claim this, I am signing this object:

@colinangel
colinangel / SSH leapfrog
Last active January 16, 2018 02:57
SSH directly to a box behind a jumpbox aka bastion host - useful for sshing to EC2 instances in private subnets
#
# Latest in Gist: https://gist.github.com/colinangel/b85d0e1fb9b6a2d4f66a
#
# NOTE: This uses ProxyCommand instead of ssh-agent because it's insecure.
# Replace 172.31.1.x with the IPs in your subnet
# Also replace the two IdentityFiles with your ssh key(s)
# Jumpbox
Host jmp
Hostname 172.31.1.10