Skip to content

Instantly share code, notes, and snippets.

@rousan
Created July 10, 2018 12:58
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 rousan/ee878eec16984485d64b85a65340d9b8 to your computer and use it in GitHub Desktop.
Save rousan/ee878eec16984485d64b85a65340d9b8 to your computer and use it in GitHub Desktop.
SSH Tunneling: Infinity Loop of Request

SSH Remote Server

To open remote forwarded port as public, append GatewayPorts yes config to ssd config file:

/etc/ssh/sshd_config

SSH Client

Run the following commands to get infinity loop in request:

ssh -L 0.0.0.0:3000:localhost:3000 <ssh_server_ip>

ssh -R 0.0.0.0:3000:localhost:3000 <ssh_server_ip>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment