Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save espacioAntonio/faf9842fb1a3dce244c6b1b28d70268a to your computer and use it in GitHub Desktop.
Save espacioAntonio/faf9842fb1a3dce244c6b1b28d70268a to your computer and use it in GitHub Desktop.
Server A Server B Server C
My PC Server with Public IP Server in Private Network

Connect to C from A: A ---> C

In C: ssh -i keyC -R 2222:localhost:22 userB@userB

In A: ssh -tt -i keyA userB@hostB "ssh -tt -i keyB -p 2222 userC@localhost

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment