Skip to content

Instantly share code, notes, and snippets.

@edgartaor
Created August 18, 2018 02:44
Show Gist options
  • Save edgartaor/7454523d7b3d653a29d1a5855d1f4c5a to your computer and use it in GitHub Desktop.
Save edgartaor/7454523d7b3d653a29d1a5855d1f4c5a to your computer and use it in GitHub Desktop.
Create a ssh tunnel for a custom port
ssh -nNT -L 0.0.0.0:9000:localhost:4000 user@remoteserver
This allow to access localhost:9000 on your local machine and see what it's been served on the remoteserver on the port 4000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment