Skip to content

Instantly share code, notes, and snippets.

@jps1st
Created March 25, 2019 21:07
Show Gist options
  • Save jps1st/4aa147d528328934072a420b578bbba5 to your computer and use it in GitHub Desktop.
Save jps1st/4aa147d528328934072a420b578bbba5 to your computer and use it in GitHub Desktop.
Create an ssh (port 2222) tunnel to a remote mongodb server so you can access it on localhost (port 27018)
ssh root@myserver.com -p2222 -L 27018:127.0.0.1:27017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment