Created
December 16, 2019 17:56
-
-
Save gwsu2008/680a1d5322b5c7cb0f1a4a6bbd06e2ce to your computer and use it in GitHub Desktop.
SSH port forwarding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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