Skip to content

Instantly share code, notes, and snippets.

@gwsu2008
Created December 16, 2019 17:56
Show Gist options
  • Save gwsu2008/680a1d5322b5c7cb0f1a4a6bbd06e2ce to your computer and use it in GitHub Desktop.
Save gwsu2008/680a1d5322b5c7cb0f1a4a6bbd06e2ce to your computer and use it in GitHub Desktop.
SSH port forwarding
Host $NAME
Hostname $EC2_IP
User $EC2_USERNAME
ForwardAgent yes
ProxyCommand ssh <internal ip> nc %h %p 2> /dev/null
IdentityFile $LOCATION_OF_AWS_PEM_KEY
access jenkins
ssh -f <internal ip> -L 8443:<external ip>:443 -N
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment