Skip to content

Instantly share code, notes, and snippets.

@james-ni
Created December 14, 2019 11:51
Show Gist options
  • Save james-ni/998d6b9a29d26ba9e52913f80e59f436 to your computer and use it in GitHub Desktop.
Save james-ni/998d6b9a29d26ba9e52913f80e59f436 to your computer and use it in GitHub Desktop.
Connect to a private server through SSH jump box
ssh -fN -L 8888:10.1.2.151:80 ec2-user@52.62.11.59 -i PRIVATEKEY.pem
curl -i localhost:8888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment