Skip to content

Instantly share code, notes, and snippets.

@gbraccialli
Created November 20, 2018 03:38
Show Gist options
  • Save gbraccialli/417045490c4e5c52bcdd60d32e78d0c1 to your computer and use it in GitHub Desktop.
Save gbraccialli/417045490c4e5c52bcdd60d32e78d0c1 to your computer and use it in GitHub Desktop.
$ cat ~/.ssh/config
host your_internal_hostname
UserKnownHostsFile=/dev/null
StrictHostKeyChecking=no
Identityfile ~/.ssh/PEM_FILE_HERE
User your_username
Hostname SERVER_INTERNAL_IP
ProxyCommand ssh -i ~/.ssh/PEM_FILE_HERE your_username@BASTION_ENDPOINT nc %h %p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment