Skip to content

Instantly share code, notes, and snippets.

@gurdotan
Created June 14, 2016 12:31
Show Gist options
  • Save gurdotan/472071e7dda7686a7bc2434b59b202e8 to your computer and use it in GitHub Desktop.
Save gurdotan/472071e7dda7686a7bc2434b59b202e8 to your computer and use it in GitHub Desktop.
SSH - connect to MongoDB with authentication remotely
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