Created
June 14, 2016 12:31
-
-
Save gurdotan/472071e7dda7686a7bc2434b59b202e8 to your computer and use it in GitHub Desktop.
SSH - connect to MongoDB with authentication remotely
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias mongo-connect="echo \"db.auth('user','password')\" | pbcopy; ssh -t dashboard \"mongo 10.0.1.107:27017/db_name\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment