Last Updated: February 25, 2016
·
4.712K
· sajnikanth

Connect to MongoDB in Vagrant with MongoHub

I assume you have mongodb up and running on a Vagrant VM.

  • Launch MongoHub and click on '+'
  • Enter 'Name' and 'Database' you want to connect to
  • Click on 'Use SSH Tunnel'
  • SSH Host = 127.0.0.1
  • SSH Port = 2222
  • Username and Password = vagrant. You may also use vagrant's insecure private key - ~/.vagrant.d/insecure_private_key

It should look something like this. Click on Save and you're good to go!!

1 Response
Add your response

Awesome! Thanks!

over 1 year ago ·